Fix incorrect assertion in JS tests.

This commit is contained in:
Guo Xiang Tan 2017-07-27 17:05:08 +09:00
parent 4d25d61e9c
commit 9c93a20cf1

View File

@ -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");
});