mongodb-stitch
Advanced tools
Comparing version 3.1.6 to 3.1.7
@@ -17,4 +17,4 @@ 'use strict'; | ||
var version = 'unknown'; | ||
if (typeof "3.1.6" !== 'undefined') { | ||
version = "3.1.6"; | ||
if (typeof "3.1.7" !== 'undefined') { | ||
version = "3.1.7"; | ||
} | ||
@@ -21,0 +21,0 @@ var SDK_VERSION = exports.SDK_VERSION = version; |
{ | ||
"name": "mongodb-stitch", | ||
"version": "3.1.6", | ||
"version": "3.1.7", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "author": "", |
@@ -52,2 +52,10 @@ const StitchMongoFixture = require('../fixtures/stitch_mongo_fixture'); | ||
function comparePartialEventSubscription({ _id, name, type, disabled, function_id: functionId }) { | ||
return { _id, name, type, disabled, function_id: functionId }; | ||
} | ||
function compareFullEventSubscription({ _id, name, type, disabled, function_id: functionId, config }) { | ||
return { _id, name, type, disabled, function_id: functionId, config }; | ||
} | ||
describe('Event Subscriptions', () =>{ | ||
@@ -84,3 +92,3 @@ let test = new StitchMongoFixture(); | ||
expect(subscriptions).toHaveLength(1); | ||
expect(subscriptions[0]).toEqual(eventSubscription); | ||
expect(comparePartialEventSubscription(subscriptions[0])).toEqual(comparePartialEventSubscription(eventSubscription)); | ||
}); | ||
@@ -93,3 +101,3 @@ | ||
const subscription = await eventSubscriptions.eventSubscription(eventSubscription._id).get(); | ||
expect(subscription).toEqual( | ||
expect(compareFullEventSubscription(subscription)).toEqual( | ||
Object.assign( | ||
@@ -120,3 +128,3 @@ { _id: eventSubscription._id }, | ||
const eventSubscriptionUpdated = await eventSubscriptions.eventSubscription(eventSubscription._id).get(); | ||
expect(eventSubscriptionUpdated).toEqual( | ||
expect(compareFullEventSubscription(eventSubscriptionUpdated)).toEqual( | ||
Object.assign( | ||
@@ -123,0 +131,0 @@ { _id: eventSubscription._id }, |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
31907
6215358