Skip to content

Commit

Permalink
chore(tests): fix faker deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
anehx committed Dec 7, 2023
1 parent 2f0453a commit e9d99ae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/testing/addon-mirage-support/factories/answer.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export default Factory.extend({
value: [
{
id: faker.string.uuid(),
name: faker.datatype.string(),
name: faker.string.sample(),
uploadUrl: faker.internet.url(),
downloadUrl: faker.internet.url(),
},
Expand Down
2 changes: 1 addition & 1 deletion packages/testing/addon-mirage-support/factories/file.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Factory } from "miragejs";

export default Factory.extend({
id: () => faker.string.uuid(),
name: () => faker.datatype.string(),
name: () => faker.string.sample(),
modifiedAt: () => faker.date.past(),
createdByUser: () => faker.string.uuid(),
uploadUrl: () => faker.internet.url(),
Expand Down

0 comments on commit e9d99ae

Please sign in to comment.