mattermost-mobile/test/mock_api_client.ts
Mattermost Build 78c01a74f7
Add performance metrics to the app (#7953) (#8008)
* Add performance metrics to the app

* add batcher and improve handling

* Add tests

* Fix test

* Address feedback

* Address feedback

* Address feedback

* update podfile

(cherry picked from commit 5f01f9e9af)

Co-authored-by: Daniel Espino García <larkox@gmail.com>
2024-06-12 09:51:38 +02:00

11 lines
534 B
TypeScript

// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import type {RequestOptions} from '@mattermost/react-native-network-client';
export const mockApiClient = {
// eslint-disable-next-line @typescript-eslint/no-unused-vars
get: jest.fn((url: string, options?: RequestOptions) => ({status: 200, ok: true})),
// eslint-disable-next-line @typescript-eslint/no-unused-vars
post: jest.fn((url: string, options?: RequestOptions) => ({status: 200, ok: true})),
};