Review: storybook

This commit is contained in:
Raphael Beer 2020-04-10 00:21:31 +02:00
parent e018e2ead9
commit 30f66c3e14
No known key found for this signature in database
GPG Key ID: C1AC5E018B25EF11

View File

@ -53,7 +53,19 @@ storiesOf('FollowList', module)
template: '<follow-list :user="user" type="following" />',
}
})
.add('with up to 7 connections', () => {
.add('with all connections loaded', () => {
return {
components: { FollowList },
store: helpers.store,
data() {
return { user: lessThanSevenUser }
},
template: '<follow-list :user="user"/>',
}
})
.add('with more connections loadable', () => {
return {
components: { FollowList },
store: helpers.store,
@ -69,18 +81,7 @@ storiesOf('FollowList', module)
template: '<follow-list :user="user" @fetchAllConnections="fetchAllConnections"/>',
}
})
.add('with all connections', () => {
return {
components: { FollowList },
store: helpers.store,
data() {
return { user: allConnectionsUser }
},
template: '<follow-list :user="user" />',
}
})
.add('with a lot of connections', () => {
.add('with 1000 connections loaded', () => {
return {
components: { FollowList },
store: helpers.store,