mirror of
https://github.com/nowcommunity/nowdatabase.git
synced 2026-10-12 19:13:52 +03:00
Fix prettier formatting in test setup file
Co-authored-by: karilint <19990676+karilint@users.noreply.github.com>
This commit is contained in:
co-authored by
karilint
parent
6397966453
commit
a3e0865996
@@ -2,12 +2,18 @@
|
||||
// See: https://github.com/remix-run/react-router/discussions/9851
|
||||
if (typeof global.Request === 'undefined') {
|
||||
global.Request = class Request {
|
||||
constructor(public url: string, public init?: RequestInit) {}
|
||||
constructor(
|
||||
public url: string,
|
||||
public init?: RequestInit
|
||||
) {}
|
||||
} as typeof Request
|
||||
}
|
||||
|
||||
if (typeof global.Response === 'undefined') {
|
||||
global.Response = class Response {
|
||||
constructor(public body?: BodyInit | null, public init?: ResponseInit) {}
|
||||
constructor(
|
||||
public body?: BodyInit | null,
|
||||
public init?: ResponseInit
|
||||
) {}
|
||||
} as typeof Response
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user