mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
16 lines
361 B
JavaScript
Executable File
16 lines
361 B
JavaScript
Executable File
var test = require('./tape');
|
|
var mongojs = require('../index');
|
|
var db = mongojs('test', ['test123']);
|
|
|
|
test('createCollection', function(t) {
|
|
db.test123.drop(function() {
|
|
db.createCollection('test123', function(err) {
|
|
t.ok(!err);
|
|
db.createCollection('test123', function(err) {
|
|
t.ok(err);
|
|
t.end();
|
|
});
|
|
});
|
|
});
|
|
});
|