Update u8aConcat call signature (#105)

* Change u8aConcat calling format

* Simplify utilkeyring test harness
This commit is contained in:
Jaco Greeff
2018-03-08 16:21:37 +01:00
committed by GitHub
parent 83aa2784f7
commit 2279c9550e
12 changed files with 48 additions and 38 deletions
+12 -6
View File
@@ -11,19 +11,25 @@ type TestKeyring = {
const createKeyring = require('./index');
function padSeed (seed: string): string {
return seed.length < 32
? padSeed(`${seed} `)
: seed;
}
const SEEDS = {
alice:
'Alice ',
padSeed('Alice'),
bob:
'Bob ',
padSeed('Bob'),
charlie:
'Charlie ',
padSeed('Charlie'),
dave:
'Dave ',
padSeed('Dave'),
eve:
'Eve ',
padSeed('Eve'),
ferdie:
'Ferdie ',
padSeed('Ferdie'),
one:
'12345678901234567890123456789012',
two: