Skip to content

Commit 2d476b1

Browse files
committed
Add more test case for testing invalid card
1 parent c3fd5c6 commit 2d476b1

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ test("Invalid cards", () => {
6666
assert.throws(() => getCardValue("5"), "invalid");
6767
assert.throws(() => getCardValue("1♠"), "invalid");
6868
assert.throws(() => getCardValue("0♠"), "invalid");
69+
assert.throws(() => getCardValue("AA"), "invalid");
6970
assert.throws(() => getCardValue("11♠"), "invalid");
7071
assert.throws(() => getCardValue("X♠"), "invalid");
7172
assert.throws(() => getCardValue("5♠♥"), "invalid");

0 commit comments

Comments
 (0)