Created
August 14, 2018 06:27
-
-
Save jeznag/f0269f643c20e0b71b1239882badf4e5 to your computer and use it in GitHub Desktop.
fixture-part-1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export default { | |
reduxState: { | |
exportParameters: { | |
dateRange: { | |
start: new Date('2018-04-02'), | |
finish: new Date('2019-04-02') | |
} | |
} | |
}, | |
context: { | |
i18n: i18nInstance | |
}, | |
apollo: { | |
getAvailableOptions: { | |
resolveWith: { | |
availableOptions: { | |
__typename: 'availableOptions', | |
availableAggregationLevels: [ | |
{ | |
__typename: 'availableAggregationLevels', | |
label: 'blah', | |
value: 'blah' | |
} | |
], | |
availableFileTypes: [ | |
{ | |
__typename: 'availableFileTypes', | |
label: 'blah', | |
value: 'blah' | |
} | |
], | |
availableMeasurements: [ | |
{ | |
__typename: 'availableMeasurements', | |
identifier: 'blah', | |
label: 'blah' | |
} | |
], | |
availableMeters: [ | |
{ | |
__typename: 'availableMeters', | |
id: '123', | |
meterClassification: ['blah'], | |
meterTitle: 'blah', | |
meterIdentifier: 'blah', | |
meterType: 'blah', | |
siteClassification: ['blah'], | |
siteName: 'blah' | |
} | |
], | |
availableTimeAggregationLevels: [ | |
{ | |
__typename: 'availableTimeAggregationLevels', | |
label: 'blah', | |
value: 'blah' | |
} | |
], | |
availableTimeZones: [ | |
{ | |
__typename: 'availableTimeZones', | |
label: 'blah', | |
value: 'blah' | |
} | |
], | |
submitted: false | |
} | |
} | |
}, | |
saveExportDataRequest: { | |
resolveWith: () => { | |
return { | |
saveExportDataRequest: { | |
NoResponse: null, | |
__typename: 'saveExportDataRequest' | |
} | |
}; | |
} | |
} | |
}, | |
component: SubmitFormFixture | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment