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:
Ruben Bridgewater
2018-04-10 18:21:40 +02:00
committed by Geoffrey Booth
parent 1f9cd4eaf7
commit be2b24310f

View File

@@ -8,7 +8,7 @@ nonce = {}
# Throw
test "basic exception throwing", ->
throws (-> throw 'error'), 'error'
throws (-> throw 'error'), /^error$/
# Empty Try/Catch/Finally