Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
mock: mockLeadOneAndFourSlice(),
name: "lead one and four slice",
Slice: LeadOneAndFourSlice
},
{
mock: mockStandardSlice(),
name: "standard slice",
Slice: StandardSlice
},
{
mock: mockSecondaryTwoNoPicAndTwoSlice(),
name: "secondary two no pic and two",
Slice: SecondaryTwoNoPicAndTwoSlice
},
{
mock: mockListTwoAndSixNoPicSlice(),
name: "list two and six no pic",
Slice: ListTwoAndSixNoPicSlice
},
{
mock: { puzzles: getPuzzleSlices(3) },
name: "puzzle",
Slice: PuzzleSlice
}
];
jest.mock("@times-components/utils", () => {
// eslint-disable-next-line global-require
const actualUtils = jest.requireActual("@times-components/utils");
return {
...actualUtils,
mock: mockSecondaryOneAndFourSlice(),
name: "secondary one and four",
Slice: SecondaryOneAndFourSlice
},
{
mock: mockSecondaryTwoAndTwoSlice(),
name: "secondary two and two",
Slice: SecondaryTwoAndTwoSlice
},
{
mock: mockSecondaryTwoNoPicAndTwoSlice(),
name: "secondary two no pic and two",
Slice: SecondaryTwoNoPicAndTwoSlice
},
{
mock: mockListTwoAndSixNoPicSlice(),
name: "list two and six no pic",
Slice: ListTwoAndSixNoPicSlice
},
{
mock: mockLeadersSlice(),
name: "leaders",
Slice: LeadersSlice
},
{
mock: mockCommentLeadAndCartoonSlice(),
name: "Comment lead and cartoon",
Slice: CommentLeadAndCartoonSlice
},
{
mock: { puzzles: getPuzzleSlices(3) },
name: "puzzle",
Slice: SecondaryFourSlice
},
{
mock: mockSecondaryTwoAndTwoSlice(),
name:
"Secondary Two And Two (Mobile: C,C,G,G, Tablet: V,V,G,G, Wide Tablet/Desktop: AM,AM,AN,AN)",
Slice: SecondaryTwoAndTwoSlice
},
{
mock: mockSecondaryTwoNoPicAndTwoSlice(),
name:
"Secondary Two No Pic And Two (Mobile: B,B,G,G - Tablet: AE,AE,G,G, Wide Tablet/Desktop: AE,AE,AP,AP)",
Slice: SecondaryTwoNoPicAndTwoSlice
},
{
mock: mockListTwoAndSixNoPicSlice(),
name:
"List Two And Six No Pic (Mobile: : C,C,L,L,L,L,L,L, Tablet: AQ,AQ,L,L,L,L,L,L, Wide Tablet: C,C,L,L,L,L,L,L)",
Slice: ListTwoAndSixNoPicSlice
},
{
mock: mockLeadersSlice(),
name: "Leaders (Mobile: M,M,M,M, Tablet: AG,AG,AG,AG)",
Slice: LeadersSlice
},
{
mock: mockCommentLeadAndCartoonSlice(),
name: "Comment Lead And Cartoon (Mobile: P,Q, Tablet: AH, AI)",
Slice: CommentLeadAndCartoonSlice
}
];