diff options
author | kumavis <kumavis@users.noreply.github.com> | 2018-06-14 11:39:57 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-14 11:39:57 +0800 |
commit | 62586b3b6e1091b296002413b635467d0d698b44 (patch) | |
tree | 033b5eb85813be6c1d216f1ad95039c3a66455d3 | |
parent | b24efcb1cd9092dfe131af47639ac75ed9209a4c (diff) | |
download | tangerine-wallet-browser-62586b3b6e1091b296002413b635467d0d698b44.tar tangerine-wallet-browser-62586b3b6e1091b296002413b635467d0d698b44.tar.gz tangerine-wallet-browser-62586b3b6e1091b296002413b635467d0d698b44.tar.bz2 tangerine-wallet-browser-62586b3b6e1091b296002413b635467d0d698b44.tar.lz tangerine-wallet-browser-62586b3b6e1091b296002413b635467d0d698b44.tar.xz tangerine-wallet-browser-62586b3b6e1091b296002413b635467d0d698b44.tar.zst tangerine-wallet-browser-62586b3b6e1091b296002413b635467d0d698b44.zip |
test - unit - import strategies - properly await async methods
-rw-r--r-- | test/unit/app/account-import-strategies.spec.js | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/test/unit/app/account-import-strategies.spec.js b/test/unit/app/account-import-strategies.spec.js index f026531f6..b709e2757 100644 --- a/test/unit/app/account-import-strategies.spec.js +++ b/test/unit/app/account-import-strategies.spec.js @@ -14,26 +14,26 @@ describe('Account Import Strategies', function () { }) it('throws an error for empty string private key', async () => { - assert.throws(function() { - accountImporter.importAccount('Private Key', [ '' ]) + assert.throws(async function() { + await accountImporter.importAccount('Private Key', [ '' ]) }, Error, 'no empty strings') }) it('throws an error for undefined string private key', async () => { - assert.throws(function () { - accountImporter.importAccount('Private Key', [ undefined ]) + assert.throws(async function () { + await accountImporter.importAccount('Private Key', [ undefined ]) }) }) it('throws an error for undefined string private key', async () => { - assert.throws(function () { - accountImporter.importAccount('Private Key', []) + assert.throws(async function () { + await accountImporter.importAccount('Private Key', []) }) }) it('throws an error for invalid private key', async () => { - assert.throws(function () { - accountImporter.importAccount('Private Key', [ 'popcorn' ]) + assert.throws(async function () { + await accountImporter.importAccount('Private Key', [ 'popcorn' ]) }) }) }) |