Skip to content

Commit

Permalink
update discount storybook mock
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewHEguardian committed Dec 14, 2023
1 parent bd3d214 commit ffceac9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export const EligibleForDiscount: StoryObj<typeof DigiSubThankYouOffer> = {
},
parameters: {
msw: [
rest.post('/api/discounts/check-eligibility', (_req, res, ctx) => {
rest.post('/api/discounts/preview-discount', (_req, res, ctx) => {
return res(ctx.json({ valid: true }));
}),
],
Expand All @@ -61,7 +61,7 @@ export const IneligibleForDiscount: StoryObj<typeof DigiSubThankYouOffer> = {
},
},
msw: [
rest.post('/api/discounts/check-eligibility', (_req, res, ctx) => {
rest.post('/api/discounts/preview-discount', (_req, res, ctx) => {
return res(ctx.json({ valid: false }));
}),
],
Expand Down

0 comments on commit ffceac9

Please sign in to comment.