Skip to content

Commit e75c8ba

Browse files
matched the Error messages in the test cases with the function error message
1 parent 5237b54 commit e75c8ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ function getCardValue(card) {
4040
}
4141
if (!["♠", "♥", "♦", "♣"].includes(cardFace)) {
4242
}
43-
throw new Error(`Invalid card rank: ${rank}`);
43+
throw new Error(`Invalid card`);
4444
}
4545

4646

0 commit comments

Comments
 (0)