diff --git a/package.js b/package.js index 066719d..06087ed 100644 --- a/package.js +++ b/package.js @@ -40,7 +40,8 @@ Package.onTest(function (api) { 'tinytest', 'test-helpers', 'ecmascript', - 'jquery' + 'jquery', + 'dburles:mongo-collection-instances' ]) api.mainModule('tests/client/main.js', 'client') diff --git a/tests/direct.js b/tests/direct.js index 1c89730..98863d4 100644 --- a/tests/direct.js +++ b/tests/direct.js @@ -134,8 +134,9 @@ function createTest (cname, conntype) { conntype )})`, async function (test) { + if (Mongo.Collection.get(cname)) return + const collection = new Mongo.Collection(cname, conntype) - // Full permissions on collection collection.allow({ insert: function () {