fix tests

This commit is contained in:
Gauthier Roebroeck 2025-10-20 16:19:51 +08:00
parent f0dd41b0f9
commit 8e0620bb68
2 changed files with 3 additions and 3 deletions

View file

@ -59,7 +59,7 @@ export const Invalid: Story = {
export const Loading: Story = {
parameters: {
msw: {
handlers: [http.all('*', async () => await delay(5_000))],
handlers: [...meta.parameters.msw.handlers, http.post('*', async () => await delay(5_000))],
},
},
play: async ({ canvas, userEvent }) => {
@ -85,7 +85,7 @@ export const Loading: Story = {
export const Error: Story = {
parameters: {
msw: {
handlers: [http.all('*', response502BadGateway)],
handlers: [...meta.parameters.msw.handlers, http.post('*', response502BadGateway)],
},
},
play: async ({ canvas, userEvent }) => {

View file

@ -76,7 +76,7 @@ export const Loading: Story = {
export const Error: Story = {
parameters: {
msw: {
handlers: [http.all('*', response502BadGateway)],
handlers: [http.post('*', response502BadGateway)],
},
},
play: async ({ canvas, userEvent }) => {