mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
17 lines
406 B
JavaScript
Executable File
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();
|
|
});
|
|
});
|
|
});
|
|
});
|
|
});
|