mirror of
https://github.com/discourse/discourse.git
synced 2025-09-07 12:02:53 +08:00
Upgrade QUnit to latest version
This commit is contained in:
parent
8ae445766f
commit
cc525b1a8d
145 changed files with 7569 additions and 6763 deletions
|
@ -1,13 +1,13 @@
|
|||
import Group from 'discourse/models/group';
|
||||
|
||||
module("model:group");
|
||||
QUnit.module("model:group");
|
||||
|
||||
test('displayName', function() {
|
||||
QUnit.test('displayName', assert => {
|
||||
const group = Group.create({ name: "test", display_name: 'donkey' });
|
||||
|
||||
ok(group.get('displayName'), "donkey", 'it should return the display name');
|
||||
assert.ok(group.get('displayName'), "donkey", 'it should return the display name');
|
||||
|
||||
group.set('display_name', null);
|
||||
|
||||
ok(group.get('displayName'), "test", "it should return the group's name");
|
||||
});
|
||||
assert.ok(group.get('displayName'), "test", "it should return the group's name");
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue