feat: Display password account's loginname in list

This commit is contained in:
Susmitha Girumala committed 2020-09-17 14:39:15 -04:00
1 parent bbb4426533
commit 905ee87858
4 files changed
+39 -3

No files matched your search

@@ -9,4 +9,16 @@ module('Unit | Model | account', function (hooks) {
let model = store.createRecord('account', {});
assert.ok(model);
});
test('it has an username attribute', function (assert) {
assert.expect(2);
const store = this.owner.lookup('service:store');
let model = store.createRecord('account', {
name: 'name',
type: 'password',
});
assert.equal(model.username, null);
model.attributes.login_name = 'username';
assert.equal(model.username, 'username');
});
});