Skip to content

Commit 89b5dc4

Browse files
committed
fix chapter 4 timestamp check matcher
1 parent d955dc7 commit 89b5dc4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

chapter3/2_writing_good_assertions/4_manual_assertions/inventoryController.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ test("generatedAt in the past", () => {
44
const result = getInventory();
55
const currentTime = Date.now() + 1;
66
const isPastTimestamp = result.generatedAt.getTime() <= currentTime;
7-
expect(isPastTimestamp).toBeBefore(true);
7+
expect(isPastTimestamp).toBe(true);
88
});

0 commit comments

Comments
 (0)