Lines Matching refs:getRandomBytesAsync
5 getRandomBytesAsync: jest.fn(async () => 0),
13 await expect(Random.getRandomBytesAsync(value));
14 expect(ExpoRandom.getRandomBytesAsync).lastCalledWith(Math.floor(value));
19 ExpoRandom.getRandomBytesAsync = null;
20 await expect(Random.getRandomBytesAsync(1024));
25 await expect(Random.getRandomBytesAsync(-1)).rejects.toThrowError(TypeError);
26 await expect(Random.getRandomBytesAsync(1025)).rejects.toThrowError(TypeError);
27 await expect(Random.getRandomBytesAsync('invalid' as any)).rejects.toThrowError(TypeError);
28 await expect(Random.getRandomBytesAsync(null as any)).rejects.toThrowError(TypeError);
29 await expect(Random.getRandomBytesAsync({} as any)).rejects.toThrowError(TypeError);
30 await expect(Random.getRandomBytesAsync(NaN)).rejects.toThrowError(TypeError);