diff --git a/ui/core/app/authenticators/password.js b/ui/core/app/authenticators/password.js index 41e75d078..a70c89ac7 100644 --- a/ui/core/app/authenticators/password.js +++ b/ui/core/app/authenticators/password.js @@ -7,7 +7,6 @@ import { inject as service } from '@ember/service'; * endpoint, while deauthentication occurs on a scope endpoint. */ export default class PasswordAuthenticator extends BasePasswordAuthenticator { - // =services @service store; @@ -24,7 +23,7 @@ export default class PasswordAuthenticator extends BasePasswordAuthenticator { */ buildAuthEndpointURL({ scope: { id: scopeID }, - authMethod: { id: authMethodID } + authMethod: { id: authMethodID }, }) { const adapter = this.store.adapterFor('application'); const options = { adapterOptions: { scopeID, method: 'authenticate' } }; @@ -43,5 +42,4 @@ export default class PasswordAuthenticator extends BasePasswordAuthenticator { const options = { adapterOptions: { method: 'deauthenticate' } }; return adapter.buildURL('scope', scopeID, options, 'findRecord'); } - } diff --git a/ui/core/app/controllers/application.js b/ui/core/app/controllers/application.js index 3fd811d62..565eb7d7a 100644 --- a/ui/core/app/controllers/application.js +++ b/ui/core/app/controllers/application.js @@ -2,9 +2,7 @@ import Controller from '@ember/controller'; import { inject as service } from '@ember/service'; export default class ApplicationController extends Controller { - // =services @service session; - } diff --git a/ui/core/app/controllers/scopes/scope.js b/ui/core/app/controllers/scopes/scope.js index 5bc636752..de850e223 100644 --- a/ui/core/app/controllers/scopes/scope.js +++ b/ui/core/app/controllers/scopes/scope.js @@ -2,9 +2,7 @@ import Controller from '@ember/controller'; import { inject as service } from '@ember/service'; export default class ScopesScopeController extends Controller { - // =services @service session; - } diff --git a/ui/core/app/router.js b/ui/core/app/router.js index 7bac5667e..a00ddbad3 100644 --- a/ui/core/app/router.js +++ b/ui/core/app/router.js @@ -9,8 +9,8 @@ export default class Router extends EmberRouter { Router.map(function () { this.route('scopes', function () { this.route('scope', { path: ':scope_id' }, function () { - this.route('authenticate', function() { - this.route('method', { path: ':auth_method_id'}); + this.route('authenticate', function () { + this.route('method', { path: ':auth_method_id' }); }); this.route('projects', function () { this.route('project', { path: ':project_id' }, function () {}); diff --git a/ui/core/app/routes/application.js b/ui/core/app/routes/application.js index 024a0b887..e67f524e1 100644 --- a/ui/core/app/routes/application.js +++ b/ui/core/app/routes/application.js @@ -12,7 +12,6 @@ import { later } from '@ember/runloop'; export default class ApplicationRoute extends Route.extend( ApplicationRouteMixin ) { - // =services @service session; diff --git a/ui/core/app/routes/index.js b/ui/core/app/routes/index.js index 4ec1a62b0..c8728d037 100644 --- a/ui/core/app/routes/index.js +++ b/ui/core/app/routes/index.js @@ -1,7 +1,6 @@ import Route from '@ember/routing/route'; export default class IndexRoute extends Route { - // =methods /** @@ -10,5 +9,4 @@ export default class IndexRoute extends Route { redirect() { this.transitionTo('scopes'); } - } diff --git a/ui/core/app/routes/scopes.js b/ui/core/app/routes/scopes.js index 86a9452fd..337b319c9 100644 --- a/ui/core/app/routes/scopes.js +++ b/ui/core/app/routes/scopes.js @@ -2,7 +2,6 @@ import Route from '@ember/routing/route'; import { A } from '@ember/array'; export default class ScopesRoute extends Route { - // =methods /** @@ -20,5 +19,4 @@ export default class ScopesRoute extends Route { // expected to default to the global scope, thus returning org scopes. return this.store.findAll('scope').catch(() => A([])); } - -} \ No newline at end of file +} diff --git a/ui/core/app/routes/scopes/index.js b/ui/core/app/routes/scopes/index.js index 06a263171..562a27a15 100644 --- a/ui/core/app/routes/scopes/index.js +++ b/ui/core/app/routes/scopes/index.js @@ -3,7 +3,6 @@ import { inject as service } from '@ember/service'; import { get } from '@ember/object'; export default class ScopesIndexRoute extends Route { - // =services @service session; @@ -17,13 +16,14 @@ export default class ScopesIndexRoute extends Route { * @param {?ScopeModel} model.firstObject */ redirect({ firstObject }) { - const authenticatedScopeID = - get(this.session, 'data.authenticated.scope.id'); + const authenticatedScopeID = get( + this.session, + 'data.authenticated.scope.id' + ); if (authenticatedScopeID) { this.transitionTo('scopes.scope', authenticatedScopeID); } else if (firstObject) { this.transitionTo('scopes.scope', firstObject.id); } } - } diff --git a/ui/core/app/routes/scopes/scope.js b/ui/core/app/routes/scopes/scope.js index e9f2c191c..2707a238b 100644 --- a/ui/core/app/routes/scopes/scope.js +++ b/ui/core/app/routes/scopes/scope.js @@ -14,12 +14,11 @@ export default class ScopesScopeRoute extends Route { * @return {Promise{ScopeModel}} */ model({ scope_id: id }) { - return this.store.findRecord('scope', id) - .catch(() => { - const maybeExistingScope = this.store.peekRecord('scope', id); - // TODO it's unclear if creating a temporary unsaved scope is reliable - // we may need to revert to a POJO. - return maybeExistingScope || this.store.createRecord('scope', { id }); - }); + return this.store.findRecord('scope', id).catch(() => { + const maybeExistingScope = this.store.peekRecord('scope', id); + // TODO it's unclear if creating a temporary unsaved scope is reliable + // we may need to revert to a POJO. + return maybeExistingScope || this.store.createRecord('scope', { id }); + }); } } diff --git a/ui/core/app/routes/scopes/scope/authenticate.js b/ui/core/app/routes/scopes/scope/authenticate.js index 93f565baa..d7dae560d 100644 --- a/ui/core/app/routes/scopes/scope/authenticate.js +++ b/ui/core/app/routes/scopes/scope/authenticate.js @@ -3,7 +3,6 @@ import { inject as service } from '@ember/service'; import { hash } from 'rsvp'; export default class ScopesScopeAuthenticateRoute extends Route { - // =services @service session; @@ -41,5 +40,4 @@ export default class ScopesScopeAuthenticateRoute extends Route { this.transitionTo(this.routeIfAlreadyAuthenticated); } } - } diff --git a/ui/core/app/routes/scopes/scope/authenticate/index.js b/ui/core/app/routes/scopes/scope/authenticate/index.js index 5ee523b46..9d6ce9d61 100644 --- a/ui/core/app/routes/scopes/scope/authenticate/index.js +++ b/ui/core/app/routes/scopes/scope/authenticate/index.js @@ -1,7 +1,6 @@ import Route from '@ember/routing/route'; export default class ScopesScopeAuthenticateIndexRoute extends Route { - // =methods /** @@ -16,5 +15,4 @@ export default class ScopesScopeAuthenticateIndexRoute extends Route { this.transitionTo('scopes.scope.authenticate.method', firstAuthMethod); } } - } diff --git a/ui/core/app/routes/scopes/scope/authenticate/method.js b/ui/core/app/routes/scopes/scope/authenticate/method.js index b52406722..5208b152d 100644 --- a/ui/core/app/routes/scopes/scope/authenticate/method.js +++ b/ui/core/app/routes/scopes/scope/authenticate/method.js @@ -3,7 +3,6 @@ import { inject as service } from '@ember/service'; import { action } from '@ember/object'; export default class ScopesScopeAuthenticateMethodRoute extends Route { - // =services @service session; @@ -62,5 +61,4 @@ export default class ScopesScopeAuthenticateMethodRoute extends Route { this.notify.error(errorMessage, { closeAfter: null }); } } - } diff --git a/ui/core/app/routes/scopes/scope/groups.js b/ui/core/app/routes/scopes/scope/groups.js index ea24aa58e..7eed4406e 100644 --- a/ui/core/app/routes/scopes/scope/groups.js +++ b/ui/core/app/routes/scopes/scope/groups.js @@ -41,9 +41,9 @@ export default class ScopesScopeGroupsRoute extends Route { try { await group.save(); this.refresh(); - this.notify.success(this.intl.t( - isNew ? 'notify.create-success' : 'notify.save-success' - )); + this.notify.success( + this.intl.t(isNew ? 'notify.create-success' : 'notify.save-success') + ); this.transitionTo('scopes.scope.groups.group', group); } catch (error) { //TODO: replace with translated strings diff --git a/ui/core/app/routes/scopes/scope/groups/group.js b/ui/core/app/routes/scopes/scope/groups/group.js index ce0585e8d..6231ab13f 100644 --- a/ui/core/app/routes/scopes/scope/groups/group.js +++ b/ui/core/app/routes/scopes/scope/groups/group.js @@ -11,6 +11,8 @@ export default class ScopesScopeGroupsGroupRoute extends Route { */ async model({ group_id }) { const { id: scopeID } = this.modelFor('scopes.scope'); - return this.store.findRecord('group', group_id, { adapterOptions: { scopeID } }); + return this.store.findRecord('group', group_id, { + adapterOptions: { scopeID }, + }); } } diff --git a/ui/core/app/routes/scopes/scope/index.js b/ui/core/app/routes/scopes/scope/index.js index 0215ea9da..36261b82d 100644 --- a/ui/core/app/routes/scopes/scope/index.js +++ b/ui/core/app/routes/scopes/scope/index.js @@ -1,7 +1,6 @@ import Route from '@ember/routing/route'; export default class ScopesScopeIndexRoute extends Route { - // =methods /** @@ -10,5 +9,4 @@ export default class ScopesScopeIndexRoute extends Route { redirect() { this.transitionTo('scopes.scope.authenticate'); } - } diff --git a/ui/core/app/routes/scopes/scope/projects.js b/ui/core/app/routes/scopes/scope/projects.js index 2e5835d63..8d9ef9c00 100644 --- a/ui/core/app/routes/scopes/scope/projects.js +++ b/ui/core/app/routes/scopes/scope/projects.js @@ -65,9 +65,9 @@ export default class ScopesScopeProjectsRoute extends Route { try { await project.save(); this.refresh(); - this.notify.success(this.intl.t( - isNew ? 'notify.create-success' : 'notify.save-success' - )); + this.notify.success( + this.intl.t(isNew ? 'notify.create-success' : 'notify.save-success') + ); this.transitionTo('scopes.scope.projects.project', project); } catch (error) { // TODO: replace with translated strings diff --git a/ui/core/app/routes/scopes/scope/roles.js b/ui/core/app/routes/scopes/scope/roles.js index f5e27a9f5..84cf2ae0f 100644 --- a/ui/core/app/routes/scopes/scope/roles.js +++ b/ui/core/app/routes/scopes/scope/roles.js @@ -41,9 +41,9 @@ export default class ScopesScopeRolesRoute extends Route { try { await role.save(); this.refresh(); - this.notify.success(this.intl.t( - isNew ? 'notify.create-success' : 'notify.save-success' - )); + this.notify.success( + this.intl.t(isNew ? 'notify.create-success' : 'notify.save-success') + ); this.transitionTo('scopes.scope.roles.role', role); } catch (error) { // TODO: replace with translated strings diff --git a/ui/core/app/routes/scopes/scope/roles/role.js b/ui/core/app/routes/scopes/scope/roles/role.js index 98cbffcd0..7fb8d3db7 100644 --- a/ui/core/app/routes/scopes/scope/roles/role.js +++ b/ui/core/app/routes/scopes/scope/roles/role.js @@ -11,6 +11,8 @@ export default class ScopesScopeRolesRoleRoute extends Route { */ async model({ role_id }) { const { id: scopeID } = this.modelFor('scopes.scope'); - return this.store.findRecord('role', role_id, { adapterOptions: { scopeID } }); + return this.store.findRecord('role', role_id, { + adapterOptions: { scopeID }, + }); } } diff --git a/ui/core/app/routes/scopes/scope/users.js b/ui/core/app/routes/scopes/scope/users.js index 6519086fd..f1982b769 100644 --- a/ui/core/app/routes/scopes/scope/users.js +++ b/ui/core/app/routes/scopes/scope/users.js @@ -42,9 +42,9 @@ export default class ScopesScopeUsersRoute extends Route { try { await user.save(); this.refresh(); - this.notify.success(this.intl.t( - isNew ? 'notify.create-success' : 'notify.save-success' - )); + this.notify.success( + this.intl.t(isNew ? 'notify.create-success' : 'notify.save-success') + ); this.transitionTo('scopes.scope.users.user', user); } catch (error) { // TODO: replace with translated strings diff --git a/ui/core/app/routes/scopes/scope/users/user.js b/ui/core/app/routes/scopes/scope/users/user.js index b2bcc0911..ffbf19e7e 100644 --- a/ui/core/app/routes/scopes/scope/users/user.js +++ b/ui/core/app/routes/scopes/scope/users/user.js @@ -11,6 +11,8 @@ export default class ScopesScopeUsersUserRoute extends Route { */ async model({ user_id }) { const { id: scopeID } = this.modelFor('scopes.scope'); - return this.store.findRecord('user', user_id, { adapterOptions: { scopeID } }); + return this.store.findRecord('user', user_id, { + adapterOptions: { scopeID }, + }); } } diff --git a/ui/core/app/session-stores/application.js b/ui/core/app/session-stores/application.js index 80d0603db..48b3bc4be 100644 --- a/ui/core/app/session-stores/application.js +++ b/ui/core/app/session-stores/application.js @@ -4,7 +4,6 @@ import { get } from '@ember/object'; //import config from '../config/environment'; export default class ApplicationSessionStore extends LocalStorageSessionStore { - @service store; /** @@ -41,7 +40,6 @@ export default class ApplicationSessionStore extends LocalStorageSessionStore { const authenticated = get(sessionData, 'authenticated'); if (scope && authenticated) authenticated.scope = scope; } - } // import CookieSessionStore from 'auth/session-stores/cookie'; diff --git a/ui/core/tests/acceptance/authentication-test.js b/ui/core/tests/acceptance/authentication-test.js index f6fa1c8ab..3481337bb 100644 --- a/ui/core/tests/acceptance/authentication-test.js +++ b/ui/core/tests/acceptance/authentication-test.js @@ -9,7 +9,7 @@ import { invalidateSession, } from 'ember-simple-auth/test-support'; -module('Acceptance | authentication', function(hooks) { +module('Acceptance | authentication', function (hooks) { setupApplicationTest(hooks); setupMirage(hooks); @@ -30,10 +30,14 @@ module('Acceptance | authentication', function(hooks) { invalidateSession(); indexURL = '/'; globalScope = this.server.create('scope', { id: 'global' }); - orgScope = this.server.create('scope', { - type: 'org', - scope: { id: globalScope.id, type: globalScope.type } - }, 'withChildren'); + orgScope = this.server.create( + 'scope', + { + type: 'org', + scope: { id: globalScope.id, type: globalScope.type }, + }, + 'withChildren' + ); scope = { id: orgScope.id, type: orgScope.type }; authMethod = this.server.create('auth-method', { scope }); orgScopeID = orgScope.id; @@ -45,14 +49,14 @@ module('Acceptance | authentication', function(hooks) { projectsURL = `/scopes/${orgScopeID}/projects`; }); - test('visiting auth methods authenticate route redirects to first auth method', async function(assert) { + test('visiting auth methods authenticate route redirects to first auth method', async function (assert) { assert.expect(1); await visit(authenticateURL); await a11yAudit(); assert.equal(currentURL(), authMethodAuthenticateURL); }); - test('visiting any authentication parent route while unauthenticated redirects to first authenticate method', async function(assert) { + test('visiting any authentication parent route while unauthenticated redirects to first authenticate method', async function (assert) { assert.expect(3); await visit(indexURL); assert.equal(currentURL(), authMethodAuthenticateURL); @@ -61,21 +65,21 @@ module('Acceptance | authentication', function(hooks) { assert.notOk(currentSession().isAuthenticated); }); - test('visiting projects while unauthenticated redirects to first authenticate method', async function(assert) { + test('visiting projects while unauthenticated redirects to first authenticate method', async function (assert) { assert.expect(2); await visit(projectsURL); assert.equal(currentURL(), authMethodAuthenticateURL); assert.notOk(currentSession().isAuthenticated); }); - test('visiting auth method authenticate route', async function(assert) { + test('visiting auth method authenticate route', async function (assert) { assert.expect(1); await visit(authMethodAuthenticateURL); await a11yAudit(); assert.equal(currentURL(), authMethodAuthenticateURL); }); - test('visiting any authentication parent route while already authenticated redirects to projects', async function(assert) { + test('visiting any authentication parent route while already authenticated redirects to projects', async function (assert) { assert.expect(6); authenticateSession({ scope }); await visit(indexURL); @@ -91,7 +95,7 @@ module('Acceptance | authentication', function(hooks) { assert.ok(currentSession().isAuthenticated); }); - test('failed authentication shows a notification message', async function(assert) { + test('failed authentication shows a notification message', async function (assert) { assert.expect(3); await visit(authMethodAuthenticateURL); assert.notOk(currentSession().isAuthenticated); @@ -101,7 +105,7 @@ module('Acceptance | authentication', function(hooks) { assert.notOk(currentSession().isAuthenticated); }); - test('successful authentication redirects to projects', async function(assert) { + test('successful authentication redirects to projects', async function (assert) { assert.expect(4); await visit(authMethodAuthenticateURL); assert.notOk(currentSession().isAuthenticated); @@ -113,7 +117,7 @@ module('Acceptance | authentication', function(hooks) { assert.ok(currentSession().isAuthenticated); }); - test('deauthentication redirects to first authenticate method', async function(assert) { + test('deauthentication redirects to first authenticate method', async function (assert) { assert.expect(3); await visit(authMethodAuthenticateURL); await fillIn('[name="identification"]', 'test'); @@ -124,5 +128,4 @@ module('Acceptance | authentication', function(hooks) { assert.notOk(currentSession().isAuthenticated); assert.equal(currentURL(), authMethodAuthenticateURL); }); - }); diff --git a/ui/core/tests/acceptance/groups-test.js b/ui/core/tests/acceptance/groups-test.js index 778a71969..b619d09ce 100644 --- a/ui/core/tests/acceptance/groups-test.js +++ b/ui/core/tests/acceptance/groups-test.js @@ -32,8 +32,8 @@ module('Acceptance | groups', function (hooks) { const group = this.server.create('group', { scope: { id: orgScope.id, - type: orgScope.type - } + type: orgScope.type, + }, }); groupsURL = `/scopes/${orgScope.id}/groups`; @@ -50,7 +50,7 @@ module('Acceptance | groups', function (hooks) { assert.equal(currentURL(), groupsURL); }); - test('visiting a group', async function(assert) { + test('visiting a group', async function (assert) { assert.expect(1); await visit(newGroupURL); await a11yAudit(); diff --git a/ui/core/tests/acceptance/roles-test.js b/ui/core/tests/acceptance/roles-test.js index ba8c85ed3..dd8483574 100644 --- a/ui/core/tests/acceptance/roles-test.js +++ b/ui/core/tests/acceptance/roles-test.js @@ -32,9 +32,9 @@ module('Acceptance | roles', function (hooks) { const role = this.server.create('role', { scope: { id: orgScope.id, - type: orgScope.type - } - }) + type: orgScope.type, + }, + }); rolesURL = `/scopes/${orgScope.id}/roles`; roleURL = `${rolesURL}/${role.id}`; @@ -50,7 +50,7 @@ module('Acceptance | roles', function (hooks) { assert.equal(currentURL(), rolesURL); }); - test('visiting a role', async function(assert) { + test('visiting a role', async function (assert) { assert.expect(1); await visit(newRoleURL); await a11yAudit(); diff --git a/ui/core/tests/acceptance/users-test.js b/ui/core/tests/acceptance/users-test.js index eac32425c..31fa5c98e 100644 --- a/ui/core/tests/acceptance/users-test.js +++ b/ui/core/tests/acceptance/users-test.js @@ -32,8 +32,8 @@ module('Acceptance | users', function (hooks) { const user = this.server.create('user', { scope: { id: orgScope.id, - type: orgScope.type - } + type: orgScope.type, + }, }); usersURL = `/scopes/${orgScope.id}/users`; @@ -50,7 +50,7 @@ module('Acceptance | users', function (hooks) { assert.equal(currentURL(), usersURL); }); - test('visiting a user', async function(assert) { + test('visiting a user', async function (assert) { assert.expect(1); await visit(newUserURL); await a11yAudit(); diff --git a/ui/core/tests/unit/controllers/application-test.js b/ui/core/tests/unit/controllers/application-test.js index 93d19cebe..eb120e471 100644 --- a/ui/core/tests/unit/controllers/application-test.js +++ b/ui/core/tests/unit/controllers/application-test.js @@ -1,11 +1,11 @@ import { module, test } from 'qunit'; import { setupTest } from 'ember-qunit'; -module('Unit | Controller | application', function(hooks) { +module('Unit | Controller | application', function (hooks) { setupTest(hooks); // Replace this with your real tests. - test('it exists', function(assert) { + test('it exists', function (assert) { let controller = this.owner.lookup('controller:application'); assert.ok(controller); }); diff --git a/ui/core/tests/unit/controllers/scopes/scope-test.js b/ui/core/tests/unit/controllers/scopes/scope-test.js index ec2c389bb..1ac27e62b 100644 --- a/ui/core/tests/unit/controllers/scopes/scope-test.js +++ b/ui/core/tests/unit/controllers/scopes/scope-test.js @@ -1,11 +1,11 @@ import { module, test } from 'qunit'; import { setupTest } from 'ember-qunit'; -module('Unit | Controller | scopes/scope', function(hooks) { +module('Unit | Controller | scopes/scope', function (hooks) { setupTest(hooks); // Replace this with your real tests. - test('it exists', function(assert) { + test('it exists', function (assert) { let controller = this.owner.lookup('controller:scopes/scope'); assert.ok(controller); }); diff --git a/ui/core/tests/unit/routes/index-test.js b/ui/core/tests/unit/routes/index-test.js index eaaac17bc..01131fb9a 100644 --- a/ui/core/tests/unit/routes/index-test.js +++ b/ui/core/tests/unit/routes/index-test.js @@ -1,10 +1,10 @@ import { module, test } from 'qunit'; import { setupTest } from 'ember-qunit'; -module('Unit | Route | index', function(hooks) { +module('Unit | Route | index', function (hooks) { setupTest(hooks); - test('it exists', function(assert) { + test('it exists', function (assert) { let route = this.owner.lookup('route:index'); assert.ok(route); }); diff --git a/ui/core/tests/unit/routes/scopes/index-test.js b/ui/core/tests/unit/routes/scopes/index-test.js index c2fb98357..22a5c073a 100644 --- a/ui/core/tests/unit/routes/scopes/index-test.js +++ b/ui/core/tests/unit/routes/scopes/index-test.js @@ -1,10 +1,10 @@ import { module, test } from 'qunit'; import { setupTest } from 'ember-qunit'; -module('Unit | Route | scopes/index', function(hooks) { +module('Unit | Route | scopes/index', function (hooks) { setupTest(hooks); - test('it exists', function(assert) { + test('it exists', function (assert) { let route = this.owner.lookup('route:scopes/index'); assert.ok(route); }); diff --git a/ui/core/tests/unit/routes/scopes/scope/authenticate-test.js b/ui/core/tests/unit/routes/scopes/scope/authenticate-test.js index 2ee818453..5a1db715d 100644 --- a/ui/core/tests/unit/routes/scopes/scope/authenticate-test.js +++ b/ui/core/tests/unit/routes/scopes/scope/authenticate-test.js @@ -1,10 +1,10 @@ import { module, test } from 'qunit'; import { setupTest } from 'ember-qunit'; -module('Unit | Route | scopes/scope/authenticate', function(hooks) { +module('Unit | Route | scopes/scope/authenticate', function (hooks) { setupTest(hooks); - test('it exists', function(assert) { + test('it exists', function (assert) { let route = this.owner.lookup('route:scopes/scope/authenticate'); assert.ok(route); }); diff --git a/ui/core/tests/unit/routes/scopes/scope/authenticate/index-test.js b/ui/core/tests/unit/routes/scopes/scope/authenticate/index-test.js index 88d5a1121..d9e86f2da 100644 --- a/ui/core/tests/unit/routes/scopes/scope/authenticate/index-test.js +++ b/ui/core/tests/unit/routes/scopes/scope/authenticate/index-test.js @@ -1,10 +1,10 @@ import { module, test } from 'qunit'; import { setupTest } from 'ember-qunit'; -module('Unit | Route | scopes/scope/authenticate/index', function(hooks) { +module('Unit | Route | scopes/scope/authenticate/index', function (hooks) { setupTest(hooks); - test('it exists', function(assert) { + test('it exists', function (assert) { let route = this.owner.lookup('route:scopes/scope/authenticate/index'); assert.ok(route); }); diff --git a/ui/core/tests/unit/routes/scopes/scope/authenticate/method-test.js b/ui/core/tests/unit/routes/scopes/scope/authenticate/method-test.js index 5aed2aefe..f077f994b 100644 --- a/ui/core/tests/unit/routes/scopes/scope/authenticate/method-test.js +++ b/ui/core/tests/unit/routes/scopes/scope/authenticate/method-test.js @@ -1,10 +1,10 @@ import { module, test } from 'qunit'; import { setupTest } from 'ember-qunit'; -module('Unit | Route | scopes/scope/authenticate/method', function(hooks) { +module('Unit | Route | scopes/scope/authenticate/method', function (hooks) { setupTest(hooks); - test('it exists', function(assert) { + test('it exists', function (assert) { let route = this.owner.lookup('route:scopes/scope/authenticate/method'); assert.ok(route); }); diff --git a/ui/core/tests/unit/routes/scopes/scope/index-test.js b/ui/core/tests/unit/routes/scopes/scope/index-test.js index ba0a5bdba..c623e801b 100644 --- a/ui/core/tests/unit/routes/scopes/scope/index-test.js +++ b/ui/core/tests/unit/routes/scopes/scope/index-test.js @@ -1,10 +1,10 @@ import { module, test } from 'qunit'; import { setupTest } from 'ember-qunit'; -module('Unit | Route | scopes/scope/index', function(hooks) { +module('Unit | Route | scopes/scope/index', function (hooks) { setupTest(hooks); - test('it exists', function(assert) { + test('it exists', function (assert) { let route = this.owner.lookup('route:scopes/scope/index'); assert.ok(route); });