INNER CODE UNIT · JavaScript

createTest

Meteor-Community-Packages/meteor-collection-hooks · tests-app/direct.test.js:114

  function createTest (cname, conntype) {
    it(`${cname}, ${JSON.stringify(conntype)}`, async function () {
      if (Mongo.getCollection(cname)) return

      const collection = new Mongo.Collection(cname, conntype)
      // Full permissions on collection
      collection.allow({
        insert: function () {
          return true
        },
        update: function () {
          return true
        },
        remove: function () {
          return true
        },
        insertAsync: function () {
          return true

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…