How to use the @times-components/provider-test-tools.fixtureGenerator.makeTopicArticleMocks 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 / topic / __tests__ / topic-styling.js View on Github external
it("should render styling correctly", () => {
    const pageSize = 3;
    const tree = renderer.create(
      
        
      
    );

    expect(tree).toMatchSnapshot();
  });
};
github newsuk / times-components / packages / topic / __tests__ / topic-functional.js View on Github external
export default () => {
  const pageSize = 3;
  const slug = "chelsea";

  const mockArticles = fixtureGenerator.makeTopicArticleMocks({
    pageSize,
    withImages: true
  });

  const props = {
    adConfig: {},
    analyticsStream: () => {},
    isLoading: false,
    onArticlePress: () => {},
    page: 1,
    pageSize,
    refetch: () => {},
    slug,
    topic: {
      name: "Chelsea",
      description: