db.info test

v1.18.x
barisusakli 8 years ago
parent 6d97c4cec8
commit e9a3acdac5

@ -1,14 +1,22 @@
'use strict';
/*global require*/
var assert = require('assert'),
db = require('./mocks/databasemock');
var assert = require('assert');
var db = require('./mocks/databasemock');
describe('Test database', function () {
it('should work', function () {
assert.doesNotThrow(function (){
var db = require('./mocks/databasemock');
require('./mocks/databasemock');
});
});
it('should return info about database', function (done) {
db.info(db.client, function (err, info) {
assert.ifError(err);
assert(info);
done();
});
});

Loading…
Cancel
Save