Mathias Buus
11 years ago
1 changed files with 10 additions and 0 deletions
@ -0,0 +1,10 @@ |
|||||
|
var assert = require('assert'); |
||||
|
var mongojs = require('../index'); |
||||
|
var db = mongojs('test', ['a','b']); |
||||
|
|
||||
|
db.a.ensureIndex({hello:'world'}) |
||||
|
setTimeout(function() { |
||||
|
db.a.count(function() { |
||||
|
db.close(); |
||||
|
}) |
||||
|
}, 100); |
Loading…
Reference in new issue