Converts tests to TypeScript (#300)

This commit is contained in:
Jaco Greeff
2019-02-14 10:48:08 +01:00
committed by GitHub
parent 2a14a8b553
commit 1e6eb2c283
158 changed files with 89 additions and 183 deletions
-1
View File
@@ -8,7 +8,6 @@ import randomAsU8a from './asU8a';
/**
* @name randomAsHex
* @signature randomAsHex (length?: number = 32): string
* @summary Creates a hex string filled with random bytes.
* @description
* Returns a hex string with the specified (optional) length filled with random bytes.
@@ -11,7 +11,6 @@ const BN_53 = new BN(0b11111111111111111111111111111111111111111111111111111);
/**
* @name randomAsNumber
* @signature randomAsNumber (): number
* @summary Creates a random number from random bytes.
* @description
* Returns a random number generated from the secure bytes.
-1
View File
@@ -6,7 +6,6 @@ import nacl from 'tweetnacl';
/**
* @name randomAsU8a
* @signature randomAsU8a (length?: number = 32): Uint8Array
* @summary Creates a Uint8Array filled with random bytes.
* @description
* Returns a `Uint8Array` with the specified (optional) length filled with random bytes.