Skip to content

Commit

Permalink
fix: 'TurnOffAndOnLights' spec
Browse files Browse the repository at this point in the history
  • Loading branch information
SantiMA10 committed Oct 17, 2020
1 parent ea9a926 commit 455cbfd
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions tests/useCases/TurnOffAndOnLights.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,9 @@ describe("TurnOffAndOnLights", () => {

await subject.perform({ lights: [light] });

expect(lightService.turnOn).toHaveBeenCalledWith(
light,
expect.anything(),
expect.anything()
);
expect(lightService.turnOn).toHaveBeenCalledWith(light);
expect(wait).toHaveBeenCalledWith(10);
expect(lightService.turnOff).toHaveBeenCalledWith(
light,
expect.anything(),
expect.anything()
);
expect(lightService.turnOff).toHaveBeenCalledWith(light);
});
});
});

0 comments on commit 455cbfd

Please sign in to comment.