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.
This commit is contained in:
parent
1f9cd4eaf7
commit
be2b24310f
|
@ -8,7 +8,7 @@ nonce = {}
|
||||||
# Throw
|
# Throw
|
||||||
|
|
||||||
test "basic exception throwing", ->
|
test "basic exception throwing", ->
|
||||||
throws (-> throw 'error'), 'error'
|
throws (-> throw 'error'), /^error$/
|
||||||
|
|
||||||
|
|
||||||
# Empty Try/Catch/Finally
|
# Empty Try/Catch/Finally
|
||||||
|
|
Loading…
Reference in New Issue