chore: generate multiple org scopes in mocks and add import comment

This commit is contained in:
Randall Morey committed 2020-07-29 13:13:43 -04:00
1 parent 3fe86614f1
commit deca73ba5f
2 files changed
+5 -4

No files matched your search

+2 -2
View File
@@ -3,10 +3,10 @@ export default function(server) {
// Scope resources
const globalScope = server.create('scope', { id: 'global' }); // creates a global scope
const orgScope = server.create('scope', {
const orgScope = server.createList('scope', 3, {
type: 'org',
scope: { id: globalScope.id, type: globalScope.type }
}, 'withChildren');
}, 'withChildren')[0];
const scope = { id: orgScope.id, type: orgScope.type };
// Auth
@@ -5,9 +5,10 @@ import setupMirage from 'ember-cli-mirage/test-support/setup-mirage';
import a11yAudit from 'ember-a11y-testing/test-support/audit';
import { Response } from 'miragejs';
import {
// currentSession,
authenticateSession,
// invalidateSession,
// These are left here intentionally for future reference.
//currentSession,
//invalidateSession,
} from 'ember-simple-auth/test-support';
module('Acceptance | host catalogs', function(hooks) {