Skip to content

Instantly share code, notes, and snippets.

@adamrneary
Created November 15, 2018 00:35
Show Gist options
  • Save adamrneary/1160aada899737e70a767540676c34cb to your computer and use it in GitHub Desktop.
Save adamrneary/1160aada899737e70a767540676c34cb to your computer and use it in GitHub Desktop.
import { alpsPool, alpsChopper, alpsDessert, alpsCloser } from './data/sections/SingleMediaMock';
const mocks: { [key: string]: (o: any) => any } = {
Journey: (journey: any) => ({
...journey,
editorialContent: [
...journey.editorialContent.slice(0, 3),
alpsPool,
...journey.editorialContent.slice(3, 9),
alpsChopper,
...journey.editorialContent.slice(9, 10),
alpsDessert,
...journey.editorialContent.slice(10, 12),
alpsCloser,
...journey.editorialContent.slice(12, 13),
],
}),
};
export default mocks;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment