diff --git a/webapp/components/CommentList/CommentList.story.js b/webapp/components/CommentList/CommentList.story.js index 0a8ebfd70..d0133ef8d 100644 --- a/webapp/components/CommentList/CommentList.story.js +++ b/webapp/components/CommentList/CommentList.story.js @@ -8,7 +8,7 @@ helpers.init() const commentMock = (fields) => { return { - id: faker.random.uuid(), + id: faker.string.uuid(), title: faker.lorem.sentence(), content: faker.lorem.paragraph(), createdAt: faker.date.past(), diff --git a/webapp/components/_new/generic/TabNavigation/TabNavigator.story.js b/webapp/components/_new/generic/TabNavigation/TabNavigator.story.js index ab6ee87f3..fcd4a067a 100644 --- a/webapp/components/_new/generic/TabNavigation/TabNavigator.story.js +++ b/webapp/components/_new/generic/TabNavigation/TabNavigator.story.js @@ -17,7 +17,7 @@ helpers.init() const postMock = (fields) => { return { ...post, - id: faker.random.uuid(), + id: faker.string.uuid(), createdAt: faker.date.past(), updatedAt: faker.date.recent(), deleted: false, @@ -30,7 +30,7 @@ const postMock = (fields) => { const userMock = (fields) => { return { ...user, - id: faker.random.uuid(), + id: faker.string.uuid(), createdAt: faker.date.past(), updatedAt: faker.date.recent(), deleted: false, diff --git a/webapp/storybook/helpers.js b/webapp/storybook/helpers.js index a6c20743c..e52fb03ed 100644 --- a/webapp/storybook/helpers.js +++ b/webapp/storybook/helpers.js @@ -61,9 +61,9 @@ const helpers = { }, fakeUser(n) { return new Array(n || 1).fill(0).map(() => { - const name = faker.name.findName() + const name = faker.person.person.fullName() return { - id: faker.random.uuid(), + id: faker.string.uuid(), name, slug: faker.helpers.slugify(name), } @@ -74,14 +74,14 @@ const helpers = { const title = faker.lorem.words() const content = faker.lorem.paragraph() return { - id: faker.random.uuid(), + id: faker.string.uuid(), title, content, slug: faker.lorem.slug(title), - shoutedCount: faker.random.number(), - commentsCount: faker.random.number(), - clickedCount: faker.random.number(), - viewedTeaserCount: faker.random.number(), + shoutedCount: faker.number.int(), + commentsCount: faker.number.int(), + clickedCount: faker.number.int(), + viewedTeaserCount: faker.number.int(), postType: ['Article'], } })