diff --git a/webapp/components/features/FollowList/FollowList.story.js b/webapp/components/features/FollowList/FollowList.story.js index efdbaed3b..b7f093854 100644 --- a/webapp/components/features/FollowList/FollowList.story.js +++ b/webapp/components/features/FollowList/FollowList.story.js @@ -18,6 +18,14 @@ const user = { following: helpers.fakeUser(7), } +const lessThanSevenUser = { + ...user, + followedByCount: 3, + followedBy: user.followedBy.slice(0, 3), + followingCount: 3, + following: user.following.slice(0, 3), +} + const allConnectionsUser = { ...user, followedBy: [...user.followedBy, ...helpers.fakeUser(5)], @@ -32,12 +40,6 @@ const noConnectionsUser = { followingCount: 0, } -const wrapTemplates = (templates) => ` -
-${templates.map((template) => `
${template}
`).join('')} -
-` - storiesOf('FollowList', module) .addDecorator(withA11y) .addDecorator(helpers.layout) @@ -48,10 +50,7 @@ storiesOf('FollowList', module) data() { return { user: noConnectionsUser } }, - template: wrapTemplates([ - '', - '', - ]), + template: '', } }) .add('with up to 7 connections', () => { @@ -67,10 +66,7 @@ storiesOf('FollowList', module) action('fetchAllConnections')(type, this.user) }, }, - template: wrapTemplates([ - '', - '', - ]), + template: '', } }) @@ -81,10 +77,7 @@ storiesOf('FollowList', module) data() { return { user: allConnectionsUser } }, - template: wrapTemplates([ - '', - '', - ]), + template: '', } }) .add('with a lot of connections', () => { @@ -102,10 +95,7 @@ storiesOf('FollowList', module) }, } }, - template: wrapTemplates([ - '', - '', - ]), + template: '', } }) .add('Fuzzy Filter', () => { @@ -115,9 +105,6 @@ storiesOf('FollowList', module) data() { return { user: fuzzyFilterUser } }, - template: wrapTemplates([ - '', - '', - ]), + template: '', } })