Skip to content

Commit 42e1a89

Browse files
authored
Add tests for face card values in getCardValue
1 parent a4e8008 commit 42e1a89

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
@@ -17,6 +17,8 @@ test(`Should return the correct number for number cards`, () => {
1717
expect(getCardValue("10♦")).toEqual(10);
1818
});
1919
// Face Cards (J, Q, K)
20+
21+
test(Should return 10 for face cards, () => {
2022
expect(getCardValue("J♣")).toEqual(10);
2123
expect(getCardValue("Q♦")).toEqual(10);
2224
expect(getCardValue("K♠")).toEqual(10);

0 commit comments

Comments
 (0)