Skip to content

Commit

Permalink
fix the failing pending breakpoints tests (firefox-devtools#4175)
Browse files Browse the repository at this point in the history
  • Loading branch information
bomsy authored and Johnny Khalil committed Oct 13, 2017
1 parent c4ed2f4 commit 97baf3d
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/actions/tests/pending-breakpoints.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 () => {
Expand Down

0 comments on commit 97baf3d

Please sign in to comment.