format-fix

This commit is contained in:
Michael Bradley, Jr 2020-01-14 18:05:37 -06:00
parent d94a4f6efc
commit 675d4c300b
1 changed files with 16 additions and 12 deletions

View File

@ -297,12 +297,14 @@ describe('.toV3()', function() {
p: p,
})
const encFixtureEthersWallet = (await fixtureEthersWallet.encrypt(pw, {
scrypt: { N: n, r: r, p: p },
salt: ethersOpts.salt,
iv: ethersOpts.iv,
uuid: ethersOpts.uuid,
})).toLowerCase()
const encFixtureEthersWallet = (
await fixtureEthersWallet.encrypt(pw, {
scrypt: { N: n, r: r, p: p },
salt: ethersOpts.salt,
iv: ethersOpts.iv,
uuid: ethersOpts.uuid,
})
).toLowerCase()
const encRandomWallet = wRandom.toV3String(pw, {
kdf: 'scrypt',
@ -314,12 +316,14 @@ describe('.toV3()', function() {
p: p,
})
const encEthersWallet = (await wEthers.encrypt(pw, {
scrypt: { N: n, r: r, p: p },
salt: ethersOpts.salt,
iv: ethersOpts.iv,
uuid: ethersOpts.uuid,
})).toLowerCase()
const encEthersWallet = (
await wEthers.encrypt(pw, {
scrypt: { N: n, r: r, p: p },
salt: ethersOpts.salt,
iv: ethersOpts.iv,
uuid: ethersOpts.uuid,
})
).toLowerCase()
assert.deepStrictEqual(JSON.parse(wStatic), JSON.parse(encFixtureWallet))
assert.deepStrictEqual(JSON.parse(wStatic), JSON.parse(encFixtureEthersWallet))