kanban / webapp /src /test /fetchMock.ts
Leon4gr45's picture
Upload folder using huggingface_hub
13555f3 verified
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
class FetchMock {
static fn = jest.fn(async () => {
const response = new Response()
return response
})
static async jsonResponse(json: string): Promise<Response> {
const response = new Response(json)
return response
}
}
export {FetchMock}