How to use the @times-components/provider-test-tools/fixtures/author-profile/author-profile.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 / author-profile / __tests__ / author-profile-list-content.native.js View on Github external
it("does not emit scroll tracking events for author profile content when nothing changed", () => {
    const reporter = jest.fn();
    const results = pagedResult(0, 3);
    const authorProfileContent = shallow(
       {}}
        onArticlePress={() => {}}
      />,
      {
        context: {
          tracking: {
            analytics: reporter
          }
        }
      }
    );
    authorProfileContent
github newsuk / times-components / packages / author-profile / __tests__ / author-profile-list-content.native.js View on Github external
it("emits scroll tracking events for author profile content", () => {
    const reporter = jest.fn();
    const results = pagedResult(0, 3);
    const authorProfileContent = shallow(
       {}}
        onArticlePress={() => {}}
      />,
      {
        context: {
          tracking: {
            analytics: reporter
          }
        }
      }
    );
    authorProfileContent