Skip to content

Commit 240823c

Browse files
Updating the console.log message as per review comments
1 parent 3bec4b0 commit 240823c

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

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

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -77,16 +77,12 @@ assertEquals(getCardValue("10♦"), 10);
7777
// Handling invalid cards
7878
try {
7979
getCardValue("invalid");
80-
81-
// This line will not be reached if an error is thrown as expected
8280
console.error("Error was not thrown for invalid card");
83-
} catch (e) {
84-
console.log("Correctly threw error for invalid card");
85-
}
81+
} catch (e) {}
8682

8783
// What other invalid card cases can you think of?
8884

89-
// Invliad suit
85+
// Invalid suit
9086
try { getCardValue("A?"); console.error("No error thrown"); } catch(e) {}
9187

9288
// Invalid rank

0 commit comments

Comments
 (0)