From 97baf3d11caa28de24ad32c5a19ff7816a120e6a Mon Sep 17 00:00:00 2001 From: Hubert Boma Manilla Date: Wed, 27 Sep 2017 00:56:10 +0100 Subject: [PATCH] fix the failing pending breakpoints tests (#4175) --- src/actions/tests/pending-breakpoints.spec.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/actions/tests/pending-breakpoints.spec.js b/src/actions/tests/pending-breakpoints.spec.js index 3fa989f1de..0c0c9636ec 100644 --- a/src/actions/tests/pending-breakpoints.spec.js +++ b/src/actions/tests/pending-breakpoints.spec.js @@ -98,13 +98,10 @@ describe("when adding breakpoints", () => { const { dispatch, getState } = createStore(simpleMockThreadClient); await dispatch(actions.newSource(makeSource("foo"))); - await dispatch( - actions.addBreakpoint(breakpoint1.location, { hidden: true }) - ); + await dispatch(actions.addBreakpoint(breakpoint1.location, "", true)); const pendingBps = selectors.getPendingBreakpoints(getState()); - // should be null - expect(pendingBps.get(breakpointLocationId1)).toBe(null); + expect(pendingBps.get(breakpointLocationId1)).toBeUndefined(); }); it("remove a corresponding pending breakpoint when deleting", async () => {