Skip to content

Commit 71994be

Browse files
committed
I added two more invalid value on 3-get-card-value.test.js
1 parent ab31f3e commit 71994be

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

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
@@ -29,6 +29,8 @@ test("should throw an error for invalid cards", () => {
2929
expect(() => getCardValue("11♣")).toThrow();
3030
expect(() => getCardValue("Z♥")).toThrow();
3131
expect(() => getCardValue("0♠")).toThrow();
32+
expect(() => getCardValue("5")).toThrow(); // number without suit
33+
expect(() => getCardValue("♠")).toThrow(); // suit without rank
3234
expect(() => getCardValue("invalid")).toThrow();
3335
});
3436
// Suggestion: Group the remaining test data into these categories:

0 commit comments

Comments
 (0)