MCPcopy Create free account
hub / github.com/reactnativecn/react-native-update / delay

Function delay

src/__tests__/endpoint.test.ts:4–7  ·  view source on GitHub ↗
(ms: number)

Source from the content-addressed store, hash-verified

2import { executeEndpointFallback, dedupeEndpoints } from '../endpoint';
3
4const delay = (ms: number) =>
5 new Promise<void>(resolve => {
6 setTimeout(resolve, ms);
7 });
8
9describe('executeEndpointFallback', () => {
10 test('uses a random configured endpoint first and stops after success', async () => {

Callers 1

endpoint.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected