Skip to content

Commit 624db1f

Browse files
author
Payman IB
committed
Remove redundant test case for Ace (A) from getCardValue tests
1 parent 366b81a commit 624db1f

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,7 @@ test("should return 10 for face cards (J, Q, K) and 10", () => {
2020
expect(getCardValue("Q♥")).toEqual(10);
2121
expect(getCardValue("K♠")).toEqual(10);
2222
});
23-
// Case 4: Handle Ace (A):
24-
test("should return 11 for Ace (A)", () => {
25-
expect(getCardValue("A♦")).toEqual(11);
26-
});
23+
2724
// Case 5: Handle Invalid Cards:
2825
test("should throw an error for invalid card rank", () => {
2926
expect(() => {

0 commit comments

Comments
 (0)