diff --git a/src/__tests__/Parse-test.js b/src/__tests__/Parse-test.js index 7c150318d..6a9e19737 100644 --- a/src/__tests__/Parse-test.js +++ b/src/__tests__/Parse-test.js @@ -179,11 +179,11 @@ describe('Parse module', () => { }); it('can set and get live query', () => { + const temp = Parse.LiveQuery; const LiveQuery = new ParseLiveQuery(); - expect(Parse.LiveQuery).toEqual(undefined); Parse.LiveQuery = LiveQuery expect(Parse.LiveQuery).toEqual(LiveQuery); - Parse.LiveQuery = undefined; + Parse.LiveQuery = temp; }); it('can set allowCustomObjectId', () => {