Skip to content

Commit 80bcd7d

Browse files
authored
Update test case description for invalid cards
1 parent 2fb1964 commit 80bcd7d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ test(`Should return 10 for face cards (J, Q, K)`, () => {
3131
});
3232

3333
// Invalid Cards
34-
test(`Should throw an error for invalid cards`, () => {
34+
test(`Should throw an error for invalid cards, including invalid suits`, () => {
3535
expect(() => getCardValue("1♠")).toThrow("Invalid card");
3636
expect(() => getCardValue("A")).toThrow("Invalid card");
3737
expect(() => getCardValue("J")).toThrow("Invalid card");

0 commit comments

Comments
 (0)