mirror of
https://github.com/discourse/discourse.git
synced 2024-12-01 18:35:11 +08:00
14 lines
373 B
Plaintext
14 lines
373 B
Plaintext
|
import Group from 'discourse/models/group';
|
||
|
|
||
|
module("model:group");
|
||
|
|
||
|
test('displayName', function() {
|
||
|
const group = Group.create({ name: "test", display_name: 'donkey' });
|
||
|
|
||
|
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");
|
||
|
});
|