Skip to content

Instantly share code, notes, and snippets.

@mustmodify
Created October 10, 2018 15:56
Show Gist options
  • Save mustmodify/a1511878ec985f68f19df1da8c84c529 to your computer and use it in GitHub Desktop.
Save mustmodify/a1511878ec985f68f19df1da8c84c529 to your computer and use it in GitHub Desktop.
describe('ROUTE_SHUFFLED', () => {
const initialState = {
entities:
{
routes: [
{
id: 1, waypoints: [
{
position: 0,
appointments: [],
description: 'Origin',
},
{
position: 1,
description: 'Customer 1',
appointments: [{id: 41, position: 1}],
},
{
position: 2,
description: 'Customer 2',
appointments: [{id: 42, position: 2}],
},
{
position: 3,
description: 'Customer 3',
appointments: [{id: 43, position: 2}],
},
{
position: 4,
description: 'Destination',
appointments: [],
}
]
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment