How to use the @times-components/fixture-generator.MockUser function in @times-components/fixture-generator

To help you get started, we’ve selected a few @times-components/fixture-generator 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 / ssr / __tests__ / helpers / article-helper.js View on Github external
beforeEach(() => {
      sundayTimesArticleWithThreeRelatedArticles = new MockArticle()
        .sundayTimes()
        .setRelatedArticles(relatedArticleCount)
        .setTemplate(template)
        .get();

      userWithBookmarks = new MockUser().setBookmarksTotal(3);
    });
github newsuk / times-components / packages / ssr / __tests__ / helpers / article-helper.js View on Github external
beforeEach(() => {
      sundayTimesArticleWithThreeRelatedArticles = new MockArticle()
        .sundayTimes()
        .setRelatedArticles(relatedArticleCount)
        .setTemplate(template)
        .get();

      userWithBookmarks = new MockUser().setBookmarksTotal(3);
    });