Skip to content

Commit

Permalink
Merge pull request #1186 from embroider-build/fix-ember-data-test
Browse files Browse the repository at this point in the history
Fix tests under ember-data 4.x
  • Loading branch information
ef4 committed Apr 7, 2022
2 parents b3fbd4b + 8a47e54 commit ae207d6
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/scenarios/static-app-test.ts
Expand Up @@ -19,7 +19,7 @@ appScenarios
import JSONAPIAdapter from '@ember-data/adapter/json-api';
export default class PostAdapter extends JSONAPIAdapter {
findRecord(store, type, id, snapshot) {
return { data: { type: 'posts', id: '0 ', attributes: { title: 'Hello world' } } };
return { data: { type: 'posts', id: '0', attributes: { title: 'Hello world' } } };
}
}
`,
Expand Down Expand Up @@ -90,6 +90,12 @@ appScenarios
}
`,
},
serializers: {
'application.js': `
import JSONAPISerializer from '@ember-data/serializer/json-api';
export default class extends JSONAPISerializer {};
`,
},
templates: {
components: {
'default-title.hbs': `
Expand Down

0 comments on commit ae207d6

Please sign in to comment.