Index: test/subscriptionClasses.js |
=================================================================== |
--- a/test/subscriptionClasses.js |
+++ b/test/subscriptionClasses.js |
@@ -42,23 +42,23 @@ |
expected.push("[Subscription]"); |
let subscription = Subscription.fromURL(url); |
if (postInit) |
postInit(subscription); |
let result = []; |
subscription.serialize(result); |
test.equal(result.sort().join("\n"), expected.sort().join("\n"), url); |
- let map = Object.create(null); |
+ let map = new Map(); |
for (let line of result.slice(1)) |
{ |
if (/(.*?)=(.*)/.test(line)) |
- map[RegExp.$1] = RegExp.$2; |
+ map.set(RegExp.$1, RegExp.$2); |
} |
- let subscription2 = Subscription.fromObject(map); |
+ let subscription2 = Subscription.fromMap(map); |
test.equal(subscription.toString(), subscription2.toString(), url + " deserialization"); |
} |
exports.testSubscriptionClassDefinitions = function(test) |
{ |
test.equal(typeof Subscription, "function", "typeof Subscription"); |
test.equal(typeof SpecialSubscription, "function", "typeof SpecialSubscription"); |
test.equal(typeof RegularSubscription, "function", "typeof RegularSubscription"); |