Created
April 5, 2021 20:13
-
-
Save eugenehp/25c3d515b3260b86024e2cb179561005 to your computer and use it in GitHub Desktop.
react-native-randomness tests
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as Randomness from '../index'; | |
describe('Generates random', () => { | |
it('Generates random bytes', async () => { | |
const data = await Randomness.random(); | |
expect(data).not.toBe(null); | |
}); | |
it('Generates random bytes of given length ', async () => { | |
const data = await Randomness.random(100); | |
expect(data.length).toBe(100); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment