mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 02:50:00 +08:00
Fix incorrect assertion in JS tests.
This commit is contained in:
parent
4d25d61e9c
commit
9c93a20cf1
|
@ -5,9 +5,9 @@ QUnit.module("model:group");
|
|||
QUnit.test('displayName', assert => {
|
||||
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);
|
||||
|
||||
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…
Reference in New Issue
Block a user