Skip to content

Commit

Permalink
chore: add story to test #2014
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex S committed Dec 29, 2017
1 parent ab81e76 commit f213bed
Showing 1 changed file with 23 additions and 11 deletions.
34 changes: 23 additions & 11 deletions dev/app/builtin/stories/pagination.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,27 @@ import { wrapWithHits } from '../../utils/wrap-with-hits.js';
const stories = storiesOf('Pagination');

export default () => {
stories.add(
'default',
wrapWithHits(container => {
window.search.addWidget(
instantsearch.widgets.pagination({
container,
maxPages: 20,
})
);
})
);
stories
.add(
'default',
wrapWithHits(container => {
window.search.addWidget(
instantsearch.widgets.pagination({
container,
maxPages: 20,
})
);
})
)
.add(
'without autoHideContainer',
wrapWithHits(container => {
window.search.addWidget(
instantsearch.widgets.pagination({
container,
autoHideContainer: false,
})
);
})
);
};

0 comments on commit f213bed

Please sign in to comment.