Skip to content

Commit

Permalink
fix faker deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
SergeAstapov committed Dec 27, 2023
1 parent eba3e1c commit 73921cf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions test-app/app/adapters/person.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ export default class PersonAdapter extends JSONAPIAdapter {
type: 'person',
id: String(i),
attributes: Object.seal({
name: faker.name.firstName(),
'avatar-url': faker.internet.avatar(),
name: faker.person.firstName(),
'avatar-url': faker.image.avatar(),
}),
}),
);
Expand Down
2 changes: 1 addition & 1 deletion test-app/app/controllers/demos/modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default class extends Controller {
}
@action showRandomMessage() {
this.showMessage(`Hello ${faker.name.firstName()}`);
this.showMessage(`Hello ${faker.person.firstName()}`);
}
@action showPreviousMessage() {
Expand Down

0 comments on commit 73921cf

Please sign in to comment.