You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
nodebb/test/database.js

30 lines
586 B
JavaScript

'use strict';
/*global require*/
var assert = require('assert');
var db = require('./mocks/databasemock');
describe('Test database', function () {
it('should work', function () {
assert.doesNotThrow(function () {
require('./mocks/databasemock');
});
});
it('should return info about database', function (done) {
db.info(db.client, function (err, info) {
assert.ifError(err);
assert(info);
done();
});
});
require('./database/keys');
require('./database/list');
require('./database/sets');
require('./database/hash');
require('./database/sorted');
});