We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fec9455 commit 0032765Copy full SHA for 0032765
Sprint-3/1-implement-and-rewrite-tests/implement/3-get-card-value.js
@@ -18,7 +18,7 @@ function getCardValue(card) {
18
card = Number(card);
19
return card;
20
} else {
21
- throw new Error("Invalid card rank.");
+ return "Invalid card rank.";
22
}
23
24
@@ -79,4 +79,5 @@ assertEquals(tenOfSpades, 10);
79
// Then it should throw an error indicating "Invalid card rank."
80
81
82
-const invalidRandomCard = getCardValue("15♠");
+const invalidRandomCard = getCardValue("15♠");
83
+//assertEquals(invalidRandomCard, "Invalid card rank.");
0 commit comments