aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/app/account-import-strategies.spec.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit/app/account-import-strategies.spec.js')
-rw-r--r--test/unit/app/account-import-strategies.spec.js16
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' ])
})
})
})