Index: test/subscriptionClasses.js |
=================================================================== |
--- a/test/subscriptionClasses.js |
+++ b/test/subscriptionClasses.js |
@@ -38,18 +38,17 @@ |
}; |
function compareSubscription(test, url, expected, postInit) |
{ |
expected.push("[Subscription]"); |
let subscription = Subscription.fromURL(url); |
if (postInit) |
postInit(subscription); |
- let result = []; |
- subscription.serialize(result); |
+ let result = [...subscription.serialize()]; |
test.equal(result.sort().join("\n"), expected.sort().join("\n"), url); |
let map = Object.create(null); |
for (let line of result.slice(1)) |
{ |
if (/(.*?)=(.*)/.test(line)) |
map[RegExp.$1] = RegExp.$2; |
} |