How to use the @times-components/provider-test-tools.fixtures.articleListNoImages 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 / author-profile.showcase.js View on Github external
makeItem(item, itemIndex) {
              if (fixtures.articleListNoImages[itemIndex]) {
                return {
                  ...fixtures.articleListNoImages[itemIndex],
                  summary(__, { maxCharCount }) {
                    if (maxCharCount === 360) {
                      return fixtures.articleListNoImages[itemIndex]
                        .longSummary;
                    }

                    return fixtures.articleListNoImages[itemIndex].shortSummary;
                  }
                };
              }

              return item;
            },
            pageSize,
github newsuk / times-components / packages / author-profile / author-profile.showcase.js View on Github external
summary(__, { maxCharCount }) {
                    if (maxCharCount === 360) {
                      return fixtures.articleListNoImages[itemIndex]
                        .longSummary;
                    }

                    return fixtures.articleListNoImages[itemIndex].shortSummary;
                  }
                };