Skip to content

Commit 75ac962

Browse files
committed
Add ace card tests to 1-implement-and-rewrite-tests/rewrite-tests-with-jest/3-get-card-value.test.js
1 parent a2518fa commit 75ac962

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@ const getCardValue = require("../implement/3-get-card-value");
66

77
// Case 1: Ace (A)
88
test(`Should return 11 when given an ace card`, () => {
9+
expect(getCardValue("A♣")).toEqual(11);
910
expect(getCardValue("A♠")).toEqual(11);
11+
expect(getCardValue("A♦")).toEqual(11);
12+
expect(getCardValue("A♥")).toEqual(11);
1013
});
1114

1215
test(`Should return 10 when given an a face card of J, Q or K`, () => {

0 commit comments

Comments
 (0)