Skip to content

Commit

Permalink
Fix tests under ember-data 4.x
Browse files Browse the repository at this point in the history
The static-app tests were using a deprecated pattern that was dropped in ember-data 4.x.
  • Loading branch information
ef4 committed Apr 7, 2022
1 parent b3fbd4b commit 8a47e54
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/scenarios/static-app-test.ts
Original file line number Diff line number Diff line change
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 8a47e54

Please sign in to comment.