feat: Add account attributes to account model
This commit is contained in:
6 files changed
+59
-1
No files matched your search
@@ -10,4 +10,15 @@ module('Unit | Model | account', function(hooks) {
|
||||
let model = store.createRecord('account', {});
|
||||
assert.ok(model);
|
||||
});
|
||||
|
||||
test('it contains attributes', function(assert) {
|
||||
let store = this.owner.lookup('service:store');
|
||||
let model = store.createRecord('account', {
|
||||
type: 'password',
|
||||
attributes: {
|
||||
login_name: 'loginname'
|
||||
}
|
||||
});
|
||||
assert.equal(model.attributes.login_name, 'loginname');
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user