Skip to content

Commit 991180d

Browse files
committed
changed the expected error message to include "1"
1 parent 91ced4e commit 991180d

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
@@ -84,7 +84,7 @@ try {
8484
console.assert(false, "Expected an error to be thrown for invalid card rank");
8585
} catch (e) {
8686
console.assert(
87-
e.message === 'Invalid card rank: "${rank}"',
87+
e.message === 'Invalid card rank: "1"', // rather than just "Invalid card rank" we can show the actual rank that was invalid
8888
`Expected error message to be "Invalid card rank" but got "${e.message}"`
8989
);
9090
}

0 commit comments

Comments
 (0)