Skip to content

Commit 40ad344

Browse files
committed
Added more descriptive test check
1 parent 875d3be commit 40ad344

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ test(`Should return the numeric value when given a number card`, () => {
2525
expect(getCardValue("10♠")).toEqual(10);
2626
});
2727
test ('Should return invalid card error when given invalid cards', () => {
28-
expect(() => getCardValue("1♠")).toThrow();
29-
expect(() => getCardValue("11♥")).toThrow();
28+
expect(() => getCardValue("1♠")).toThrow("Invalid card");
29+
expect(() => getCardValue("11♥")).toThrow("Invalid card");
3030
});
3131

3232

0 commit comments

Comments
 (0)