Skip to content

Commit

Permalink
Merge pull request #198 from amaury-hanser/fix/sb
Browse files Browse the repository at this point in the history
Updates product-feed mock for storybook as we were overwriting state
  • Loading branch information
Quetzacoalt91 authored Jul 7, 2021
2 parents 96ede0a + d2fad86 commit 0b44729
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions _dev/.storybook/mock/product-feed.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,11 @@ export const productFeed = {
export const productFeedEnabled = {
...productFeed,
status: {
...productFeed.status,
enabled: true,
}
}

export const productFeedDisabled = {
...productFeed,
status: {
enabled: false,
}
}

export const productFeedIsConfigured = {
...productFeedEnabled,
isConfigured: true,
Expand All @@ -51,13 +45,13 @@ export const productFeedIsConfigured = {
export const productFeedMissingFields = {
...productFeedIsConfigured,
settings: {
...productFeedIsConfigured.settings,
targetCountries: [],
attributeMapping: {},
autoImportShippingSettings: false,
}
}


export const productFeedIsConfiguredOnce = {
...productFeedIsConfigured,
isConfiguredOnce: true,
Expand All @@ -66,6 +60,7 @@ export const productFeedIsConfiguredOnce = {
export const productFeedStatusSyncFailed = {
...productFeedEnabled,
status: {
...productFeedEnabled.status,
failedSyncs: ['fail'],
}
}
Expand Down

0 comments on commit 0b44729

Please sign in to comment.