nodejs-tough-cookie/nodejs-tough-cookie-assert.patch
2020-11-26 09:37:39 +08:00

29 lines
984 B
Diff

commit 9abb0ed84e54ac6fa5f7b9af2b9ebb09a0723753
Author: Tom Hughes <tom@compton.nu>
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.'));
}
}
})