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

13 lines
348 B

var insert = require('./insert');
insert('getCollectionNames', [{
hello:'world'
}], function(db, t, done) {
db.collection('b').save({hello: "world"}, function(err, b) {
db.getCollectionNames(function(err, colNames) {
t.notEqual(colNames.indexOf('a'), -1);
t.notEqual(colNames.indexOf('b'), -1);
done();
});
});
});