Lines Matching refs:global
12 declare const global: any; constant
31 originalFetch = global.fetch;
32 global.fetch = jest.fn();
36 global.fetch = originalFetch;
40 global.fetch.mockResolvedValue(successResponse);
45 expect(global.fetch).toHaveBeenCalledWith(expoEndpointUrl, expect.anything());
50 global.fetch.mockResolvedValue(successResponse);
56 expect(global.fetch).toHaveBeenCalledTimes(1);
62 global.fetch
68 expect(global.fetch).toHaveBeenCalledTimes(3);
75 global.fetch.mockRejectedValueOnce(new TypeError()).mockResolvedValueOnce(successResponse);
78 expect(global.fetch).toHaveBeenCalledTimes(2);
86 global.fetch.mockRejectedValue(new TypeError());
90 expect(global.fetch).toHaveBeenCalledTimes(2);