import { faker } from '@faker-js/faker'; import { ActionFaker } from '@test/fakers/action.faker'; import { CallToAction, CallToActionRaw } from '@3cr/viewer-types-ts'; export class CallToActionFaker { static random(): CallToAction { return { Actions: faker.helpers.multiple(ActionFaker.random, { count: { min: 1, max: 10 } }) }; } static randomRaw(): CallToActionRaw { return { Actions: faker.helpers.multiple(ActionFaker.randomRaw, { count: { min: 1, max: 10 } }) }; } }