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 91ced4e commit 991180dCopy full SHA for 991180d
Sprint-3/1-implement-and-rewrite-tests/implement/3-get-card-value.js
@@ -84,7 +84,7 @@ try {
84
console.assert(false, "Expected an error to be thrown for invalid card rank");
85
} catch (e) {
86
console.assert(
87
- e.message === 'Invalid card rank: "${rank}"',
+ e.message === 'Invalid card rank: "1"', // rather than just "Invalid card rank" we can show the actual rank that was invalid
88
`Expected error message to be "Invalid card rank" but got "${e.message}"`
89
);
90
}
0 commit comments