mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 11:35:04 +01:00
better naming
This commit is contained in:
parent
b53b60e142
commit
0b5c2f9273
@ -45,9 +45,8 @@ export function tests() {
|
|||||||
return {
|
return {
|
||||||
test_unsubscribe(assert) {
|
test_unsubscribe(assert) {
|
||||||
const c = new Collection();
|
const c = new Collection();
|
||||||
const subscription = c.subscribe({});
|
const unsubscribe = c.subscribe({});
|
||||||
// unsubscribe
|
unsubscribe();
|
||||||
subscription();
|
|
||||||
assert.equal(c.firstSubscribeCalls, 1);
|
assert.equal(c.firstSubscribeCalls, 1);
|
||||||
assert.equal(c.firstUnsubscribeCalls, 1);
|
assert.equal(c.firstUnsubscribeCalls, 1);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user