Skip to content

Commit 50aa2c3

Browse files
committed
more invalid tests
1 parent 3d63709 commit 50aa2c3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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
@@ -30,6 +30,8 @@ test("Should throw an error for invalid card strings", () => {
3030
expect(() => getCardValue("1♠")).toThrow("Invalid card");
3131
expect(() => getCardValue("A-Z")).toThrow("Invalid card");
3232
expect(() => getCardValue("Joker")).toThrow("Invalid card");
33+
expect(() => getCardValue("")).toThrow("Invalid card");
34+
expect(() => getCardValue("5⋆")).toThrow("Invalid card");
3335
});
3436

3537
// To learn how to test whether a function throws an error as expected in Jest,

0 commit comments

Comments
 (0)