discourse/test/javascripts/models/group-test.js.es6
2017-06-15 10:12:07 -04:00

13 lines
397 B
JavaScript

import Group from 'discourse/models/group';
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');
group.set('display_name', null);
assert.ok(group.get('displayName'), "test", "it should return the group's name");
});