From be2b24310fc2ede242be2d8550040b2d2672eb9d Mon Sep 17 00:00:00 2001 From: Ruben Bridgewater Date: Tue, 10 Apr 2018 18:21:40 +0200 Subject: [PATCH] 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. --- test/exception_handling.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/exception_handling.coffee b/test/exception_handling.coffee index 416bdc53..bb19dce0 100644 --- a/test/exception_handling.coffee +++ b/test/exception_handling.coffee @@ -8,7 +8,7 @@ nonce = {} # Throw test "basic exception throwing", -> - throws (-> throw 'error'), 'error' + throws (-> throw 'error'), /^error$/ # Empty Try/Catch/Finally