Skip to content

Commit 3919856

Browse files
committed
refactoring 3-get-card-value.test.js by adding king of Spades
1 parent ed29b44 commit 3919856

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
@@ -14,12 +14,12 @@ test("Should return numeric value(8) for Number Cards (2-10)", () => {
1414
});
1515
// Case 3: Handle Face Cards (J, Q, K):
1616
test("should return the value 10, a card with a rank of ('10', 'J', 'Q', or 'K')", () => {
17-
const aceofSpades = getCardValue("K");
17+
const aceofSpades = getCardValue("K");
1818
expect(aceofSpades).toEqual(10);
1919
});
2020
// Case 4: Handle Ace (A):
2121
test("should return the value 11,for a card with a rank of 'A' ", () => {
22-
const aceofSpades = getCardValue("A");
22+
const aceofSpades = getCardValue("A");
2323
expect(aceofSpades).toEqual(11);
2424
});
2525
// Case 5: Handle Invalid Cards:

0 commit comments

Comments
 (0)