mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
Fix incorrect assertion in JS tests.
This commit is contained in:
parent
4d25d61e9c
commit
9c93a20cf1
1 changed files with 3 additions and 3 deletions
|
@ -5,9 +5,9 @@ QUnit.module("model:group");
|
||||||
QUnit.test('displayName', assert => {
|
QUnit.test('displayName', assert => {
|
||||||
const group = Group.create({ name: "test", display_name: 'donkey' });
|
const group = Group.create({ name: "test", display_name: 'donkey' });
|
||||||
|
|
||||||
assert.ok(group.get('displayName'), "donkey", 'it should return the display name');
|
assert.equal(group.get('displayName'), "donkey", 'it should return the display name');
|
||||||
|
|
||||||
group.set('display_name', null);
|
group.set('display_name', null);
|
||||||
|
|
||||||
assert.ok(group.get('displayName'), "test", "it should return the group's name");
|
assert.equal(group.get('displayName'), "test", "it should return the group's name");
|
||||||
});
|
});
|
Loading…
Add table
Add a link
Reference in a new issue