Files
zoff/server/node_modules/mongojs/test/test-chained-collection-names.js

17 lines
406 B
JavaScript
Executable File

var test = require('./tape');
var mongojs = require('../index');
var db = mongojs('test', ['b.c']);
test('chained-collection-names', function(t) {
db.b.c.remove(function() {
db.b.c.save({hello: "world"}, function(err, rs) {
db.b.c.find(function(err, docs) {
t.equal(docs[0].hello, "world");
db.b.c.remove(function() {
t.end();
});
});
});
});
});