Merge branch 'develop' into feature-sessions-api

This commit is contained in:
Randall Morey authored and GitHub committed 2020-09-21 13:40:37 -04:00
commit ffcb3d6e58
4 files changed
+46 -3

No files matched your search

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