mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
12 lines
229 B
JavaScript
12 lines
229 B
JavaScript
Tinytest.add(
|
|
'collection - call Mongo.Collection without new',
|
|
function (test) {
|
|
test.throws(
|
|
function () {
|
|
Mongo.Collection(null);
|
|
},
|
|
/use "new" to construct a Mongo\.Collection/
|
|
);
|
|
}
|
|
);
|