Skip to content

Commit 9cd8008

Browse files
committed
Add more test case for testing invalid cards.
1 parent 2d476b1 commit 9cd8008

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ test(`Should return "Invalid" when given an invalid card`, () => {
3737
expect(() => getCardValue("1♠")).toThrow();
3838
expect(() => getCardValue("0♠")).toThrow();
3939
expect(() => getCardValue("11♠")).toThrow();
40+
expect(() => getCardValue("AA")).toThrow();
4041
expect(() => getCardValue("X♠")).toThrow();
4142
expect(() => getCardValue("5♠♥")).toThrow();
4243
});

0 commit comments

Comments
 (0)