Skip to content

Commit 24ab09f

Browse files
committed
test: add 2♠ test case per reviewer question + verify returns 2
1 parent 858b503 commit 24ab09f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,11 @@ test(`Should return 11 when given an ace card`, () => {
1515
// Invalid Cards
1616

1717
// Case 2: Number Cards (2-10)
18-
test(`Should return correct value for single digit number card`, () => {
18+
test(`Should return correct value for number cards (2-10)`, () => {
1919
expect(getCardValue("9♠")).toEqual(9);
2020
expect(getCardValue("5♦")).toEqual(5);
2121
expect(getCardValue("10♣")).toEqual(10);
22+
expect(getCardValue("2♠")).toEqual(2);
2223
});
2324

2425
// Case 3: Face cards (J, Q, K)

0 commit comments

Comments
 (0)