How to use the @times-components/provider-test-tools/fixtures/author-profile/article-list-with-images.json.data function in @times-components/provider-test-tools

To help you get started, we’ve selected a few @times-components/provider-test-tools examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github newsuk / times-components / packages / article-list / __tests__ / paged-result.js View on Github external
export default (skip, first) => ({
  articles: {
    ...articleListWithImagesFixture.data.author.articles,
    list: articleListWithImagesFixture.data.author.articles.list.slice(
      skip,
      skip + first
    )
  }
});
github newsuk / times-components / packages / article-list / __tests__ / paged-result.js View on Github external
export default (skip, first) => ({
  articles: {
    ...articleListWithImagesFixture.data.author.articles,
    list: articleListWithImagesFixture.data.author.articles.list.slice(
      skip,
      skip + first
    )
  }
});