mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-28 14:04:43 -04:00
parent
557386f78f
commit
e2155e735d
65 changed files with 834 additions and 467 deletions
|
@ -17,6 +17,6 @@ export const getBackendUrl: (() => string) = () => {
|
|||
return store.getState().frontendConfig.backendUrl
|
||||
}
|
||||
|
||||
export const expectResponseCode: ((response: Response, code?: number) => boolean) = (response, code = 200) => {
|
||||
export const expectResponseCode = (response: Response, code = 200): boolean => {
|
||||
return response.status !== code
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue