There was an error while loading. Please reload this page.
1 parent 95828f5 commit a8c0c3bCopy full SHA for a8c0c3b
1 file changed
Sprint-3/1-implement-and-rewrite-tests/implement/3-get-card-value.js
@@ -53,7 +53,7 @@ function getCardValue(card) {
53
54
// Suit and rank validation
55
if (!validSuits.includes(suit)) {
56
- throw new Error("Invalid card played, suit is missing");
+ throw new Error("Invalid card: suit is not recognised");
57
}
58
if (validRanks.includes(rank)) {
59
if (rank === "A") {
0 commit comments