Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
fixture-part-1
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
You can’t perform that action at this time.