From 5a3735ea8374cf8fba7959c7b327da299470b502 Mon Sep 17 00:00:00 2001 From: Steve Hopkinson Date: Sat, 4 Feb 2017 07:46:01 +0000 Subject: [PATCH] Update function to throw a message, not an object --- assert-equals.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assert-equals.js b/assert-equals.js index 5b30a44..ac48593 100644 --- a/assert-equals.js +++ b/assert-equals.js @@ -3,7 +3,7 @@ function assertEquals (message, expected, actual) { deepEquals(expected, actual); } catch (failure) { - throw ({message: `${message} ${failure.message}`}); + throw (`${message} ${failure.message}`); } };