mirror of
https://github.com/discourse/discourse.git
synced 2025-06-07 12:14:38 +08:00
Fix incorrect assertion in JS tests.
This commit is contained in:
@ -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");
|
||||
});
|
||||
|
Reference in New Issue
Block a user