DEV: Fix typos in a chat service tests (#26239)
channnel -> channel and use `assert.true()/assert.false()`
This commit is contained in:
parent
6da7865a77
commit
83e73722a7
|
@ -19,30 +19,30 @@ module(
|
|||
});
|
||||
|
||||
test(".origin", function (assert) {
|
||||
this.manager.origin = ORIGINS.channnel;
|
||||
assert.strictEqual(this.manager.origin, ORIGINS.channnel);
|
||||
this.manager.origin = ORIGINS.channel;
|
||||
assert.strictEqual(this.manager.origin, ORIGINS.channel);
|
||||
});
|
||||
|
||||
test(".isBrowse", function (assert) {
|
||||
this.manager.origin = ORIGINS.browse;
|
||||
assert.strictEqual(this.manager.isBrowse, true);
|
||||
assert.true(this.manager.isBrowse);
|
||||
|
||||
this.manager.origin = null;
|
||||
assert.strictEqual(this.manager.isBrowse, false);
|
||||
assert.false(this.manager.isBrowse);
|
||||
|
||||
this.manager.origin = ORIGINS.channel;
|
||||
assert.strictEqual(this.manager.isBrowse, false);
|
||||
assert.false(this.manager.isBrowse);
|
||||
});
|
||||
|
||||
test(".isChannel", function (assert) {
|
||||
this.manager.origin = ORIGINS.channnel;
|
||||
assert.strictEqual(this.manager.isChannel, true);
|
||||
this.manager.origin = ORIGINS.channel;
|
||||
assert.true(this.manager.isChannel);
|
||||
|
||||
this.manager.origin = ORIGINS.browse;
|
||||
assert.strictEqual(this.manager.isChannel, false);
|
||||
assert.false(this.manager.isChannel);
|
||||
|
||||
this.manager.origin = null;
|
||||
assert.strictEqual(this.manager.isChannel, true);
|
||||
assert.true(this.manager.isChannel);
|
||||
});
|
||||
}
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue