saintedlama
9 years ago
1 changed files with 0 additions and 15 deletions
@ -1,15 +0,0 @@ |
|||
var test = require('tape') |
|||
var mongojs = require('../index') |
|||
|
|||
test('events destroy', function (t) { |
|||
var db = mongojs('test', ['a']) |
|||
|
|||
db.on('destroy', function () { |
|||
t.pass('destroy event emitted') |
|||
t.end() |
|||
}) |
|||
|
|||
db.close(function (err) { |
|||
t.error(err, 'should close without error') |
|||
}) |
|||
}) |
Loading…
Reference in new issue