(msg: string, toast: any, duration?: number, title?: string)
| 54 | } |
| 55 | |
| 56 | function errorToast(msg: string, toast: any, duration?: number, title?: string) { |
| 57 | toast({ |
| 58 | title: title ?? 'Error', |
| 59 | description: msg, |
| 60 | status: 'error', |
| 61 | isClosable: true, |
| 62 | duration: duration ?? 2000, |
| 63 | }); |
| 64 | } |
| 65 | |
| 66 | function beautifyBody(body: string, contentType: string): string { |
| 67 | if (contentType?.includes('application/json')) { |
no outgoing calls
no test coverage detected