Index: test/subscriptionClasses.js |
=================================================================== |
--- a/test/subscriptionClasses.js |
+++ b/test/subscriptionClasses.js |
@@ -60,25 +60,24 @@ |
} |
let subscription2 = Subscription.fromObject(map); |
test.equal(subscription.toString(), subscription2.toString(), url + " deserialization"); |
} |
function compareSubscriptionFilters(test, subscription, expected) |
{ |
test.deepEqual([...subscription.filterText()], expected); |
- test.deepEqual([...subscription.filters()], expected.map(f$)); |
test.equal(subscription.filterCount, expected.length); |
for (let i = 0; i < subscription.filterCount; i++) |
- test.equal(subscription.filterAt(i).text, expected[i]); |
+ test.equal(subscription.filterTextAt(i), expected[i]); |
- test.ok(!subscription.filterAt(subscription.filterCount)); |
- test.ok(!subscription.filterAt(-1)); |
+ test.ok(!subscription.filterTextAt(subscription.filterCount)); |
+ test.ok(!subscription.filterTextAt(-1)); |
} |
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"); |
test.equal(typeof ExternalSubscription, "function", "typeof ExternalSubscription"); |