From 0b5c2f9273fde69f3361486b85075372e9c1a958 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Mon, 29 Jul 2019 10:59:49 +0200 Subject: [PATCH] better naming --- src/observable/BaseObservableCollection.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/observable/BaseObservableCollection.js b/src/observable/BaseObservableCollection.js index 13b059ae..f9370f10 100644 --- a/src/observable/BaseObservableCollection.js +++ b/src/observable/BaseObservableCollection.js @@ -45,9 +45,8 @@ export function tests() { return { test_unsubscribe(assert) { const c = new Collection(); - const subscription = c.subscribe({}); - // unsubscribe - subscription(); + const unsubscribe = c.subscribe({}); + unsubscribe(); assert.equal(c.firstSubscribeCalls, 1); assert.equal(c.firstUnsubscribeCalls, 1); }