Skip to content

Commit be2b243

Browse files
BridgeARGeoffreyBooth
authored andcommitted
Fix: a test relied on faulty behavior (#5028)
`assert.throws` did not test for the error message so far. This changes it to actually test for the error message.
1 parent 1f9cd4e commit be2b243

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/exception_handling.coffee

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ nonce = {}
88
# Throw
99

1010
test "basic exception throwing", ->
11-
throws (-> throw 'error'), 'error'
11+
throws (-> throw 'error'), /^error$/
1212

1313

1414
# Empty Try/Catch/Finally

0 commit comments

Comments
 (0)