Skip to content

Commit 6ae0956

Browse files
Update Jest tests for getCardValue
1 parent fb62cf4 commit 6ae0956

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Sprint-3/1-implement-and-rewrite-tests/rewrite-tests-with-jest/3-get-card-value.test.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ test(`Should throw an error when given an invalid card`, () => {
6666
expect(() => getCardValue("")).toThrow("Invalid card format");
6767
});
6868

69+
70+
6971
// To learn how to test whether a function throws an error as expected in Jest,
7072
// please refer to the Jest documentation:
7173
// https://jestjs.io/docs/expect#tothrowerror

0 commit comments

Comments
 (0)