From 3da8b26a5258eab66983d5eb2b8e99e058908470 Mon Sep 17 00:00:00 2001 From: Philip Nuzhnyy Date: Thu, 23 Nov 2017 15:29:10 +0000 Subject: [PATCH] add allow and deny mocks for mongo Collection --- lib/meteor/mongo.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/meteor/mongo.js b/lib/meteor/mongo.js index 47142ff..15d5794 100644 --- a/lib/meteor/mongo.js +++ b/lib/meteor/mongo.js @@ -1,4 +1,6 @@ const Collection = jest.fn(); +Collection.prototype.allow = jest.fn(); +Collection.prototype.deny = jest.fn(); Collection.prototype.attachSchema = jest.fn(); Collection.prototype.insert = jest.fn(); Collection.prototype.update = jest.fn();