refactor: relationships are expressed as objects {id} rather than string ID fields

This commit is contained in:
Randall Morey committed 2020-07-16 18:45:08 -04:00
1 parent 45b419e641
commit d9795daf1b
2 files changed
+21 -6

No files matched your search

+5 -5
View File
@@ -19,11 +19,11 @@ module('Unit | Model | scope', function(hooks) {
this.server.get('/v1/scopes', () => ({
items: [
{id: 'global', type: 'global'},
{id: 'o_1', type: 'org', scope_id: 'global'},
{id: 'o_2', type: 'org', scope_id: 'global'},
{id: 'p_1', type: 'project', scope_id: 'o_1'},
{id: 'p_2', type: 'project', scope_id: 'o_1'},
{id: 'p_3', type: 'project', scope_id: 'o_2'}
{id: 'o_1', type: 'org', scope: {id: 'global'}},
{id: 'o_2', type: 'org', scope: {id: 'global'}},
{id: 'p_1', type: 'project', scope: {id: 'o_1'}},
{id: 'p_2', type: 'project', scope: {id: 'o_1'}},
{id: 'p_3', type: 'project', scope: {id: 'o_2'}},
]
}));
const scopes = await store.findAll('scope');