refactor: 💡 account and auth-method abilities (#1691)

* refactor: 💡 account and auth-method abilities

* refactor: 💡 add update & delete abilities & unit tests
This commit is contained in:
lisbet-alvarez authored and GitHub committed 2023-05-17 14:31:12 -07:00
1 parent e8a10b3131
commit 6dd0423923
14 files changed
+551 -51

No files matched your search

@@ -61,7 +61,7 @@ module('Unit | Model | auth method', function (hooks) {
await model.changeState('foobar');
});
test('it has isPassword property and returns the expected values', async function (assert) {
test('it has isPassword property and returns the expected values', function (assert) {
assert.expect(3);
const modelA = store.createRecord('auth-method', {
type: TYPE_AUTH_METHOD_PASSWORD,
@@ -77,7 +77,7 @@ module('Unit | Model | auth method', function (hooks) {
assert.false(modelC.isPassword);
});
test('it has isOIDC property and returns the expected values', async function (assert) {
test('it has isOIDC property and returns the expected values', function (assert) {
assert.expect(3);
const modelA = store.createRecord('auth-method', {
type: TYPE_AUTH_METHOD_OIDC,
@@ -93,7 +93,7 @@ module('Unit | Model | auth method', function (hooks) {
assert.false(modelC.isOIDC);
});
test('it has isLDAP property and returns the expected values', async function (assert) {
test('it has isLDAP property and returns the expected values', function (assert) {
assert.expect(3);
const modelA = store.createRecord('auth-method', {
type: TYPE_AUTH_METHOD_LDAP,
@@ -109,7 +109,7 @@ module('Unit | Model | auth method', function (hooks) {
assert.false(modelC.isLDAP);
});
test('it has isUnknown property and returns the expected values', async function (assert) {
test('it has isUnknown property and returns the expected values', function (assert) {
assert.expect(4);
const modelA = store.createRecord('auth-method', {
type: TYPE_AUTH_METHOD_LDAP,