feat: Display password account's loginname in list
This commit is contained in:
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');
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user