How to use the @times-components/provider-test-tools.fixtureGenerator.makeAuthor 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-helper.js View on Github external
it("adds author profile fields to tracking context", () => {
    const reporter = jest.fn();
    const pageSize = 3;

    renderer.create(
      
        
      
    );

    expect(reporter).toHaveBeenCalledWith(
      expect.objectContaining({
        object: "AuthorProfile",
        attrs: expect.objectContaining({
          authorName: "Deborah Haynes",
          page: 1,
          pageSize
        })
github newsuk / times-components / packages / author-profile / __tests__ / author-profile-list-content.native.js View on Github external
it("renders page error", () => {
    const wrapper = shallow(
       {}}
        onTwitterLinkPress={() => {}}
        onArticlePress={() => {}}
        onViewed={() => {}}
      />
    );

    expect(
      wrapper
        .dive()
        .dive()