From 0540c8abc79ac90a71b436c254e0cd083c4a1f36 Mon Sep 17 00:00:00 2001 From: Valeri Karpov Date: Thu, 9 Mar 2017 23:08:14 -0700 Subject: [PATCH] test: fix tests --- test/model.discriminator.test.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/model.discriminator.test.js b/test/model.discriminator.test.js index f373b0fc444..ab00eb46535 100644 --- a/test/model.discriminator.test.js +++ b/test/model.discriminator.test.js @@ -484,7 +484,9 @@ describe('model', function() { $push: { events: { kind: 'Clicked', element: '#button' } } - }).then(() => doc); + }).then(function() { + return doc; + }); }). then(function(doc) { return Batch.findOne({ _id: doc._id });