mirror of
https://github.com/gotson/komga.git
synced 2025-12-06 08:32:25 +01:00
fix tests
This commit is contained in:
parent
f0dd41b0f9
commit
8e0620bb68
2 changed files with 3 additions and 3 deletions
|
|
@ -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 }) => {
|
||||
|
|
|
|||
|
|
@ -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 }) => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue