commit 9abb0ed84e54ac6fa5f7b9af2b9ebb09a0723753 Author: Tom Hughes Date: Fri May 10 22:33:11 2019 +0100 Fix tests for changes in assert diff --git a/test/jar_serialization_test.js b/test/jar_serialization_test.js index 51865cb..3a6687c 100644 --- a/test/jar_serialization_test.js +++ b/test/jar_serialization_test.js @@ -185,7 +185,7 @@ vows "Cannot call toJSON": function(jar) { assert.throws(function() { jar.toJSON(); - }, 'getAllCookies is not implemented (therefore jar cannot be serialized)'); + }, Error('getAllCookies is not implemented (therefore jar cannot be serialized)')); } } }) @@ -200,7 +200,7 @@ vows "Cannot call toJSON": function(jar) { assert.throws(function() { jar.toJSON(); - }, 'CookieJar store is not synchronous; use async API instead.'); + }, Error('CookieJar store is not synchronous; use async API instead.')); } } })