Skip to content

Commit b1f877b

Browse files
authored
Update test case for invalid card input error
1 parent 82d32cb commit b1f877b

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
@@ -21,7 +21,7 @@ test(`Should return the number when given a number card`, () => {
2121
expect(getCardValue("2♦")).toEqual(2);
2222
});
2323
//Case 4: Invalid cards
24-
test(`Should return the invalid suit, invalid card or invalid card`, () => {
24+
test(`Should raise Invalid card error for an invalid Input`, () => {
2525
expect(() => getCardValue("Apple")).toThrow("Invalid card");
2626
expect(() => getCardValue("4🎉")).toThrow("Invalid card");
2727
expect(() => getCardValue("20♣")).toThrow("Invalid card");

0 commit comments

Comments
 (0)