DEV: Fix typos in a chat service tests (#26239)

channnel -> channel

and use `assert.true()/assert.false()`
This commit is contained in:
Jarek Radosz 2024-03-19 12:07:19 +01:00 committed by GitHub
parent 6da7865a77
commit 83e73722a7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 9 additions and 9 deletions

View File

@ -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);
});
}
);