From d0536ba9844245f48e19dfded4d790776426e792 Mon Sep 17 00:00:00 2001 From: Whymarrh Whitby Date: Wed, 15 Jan 2020 13:27:51 -0330 Subject: [PATCH] Return promises from accountImporter tests (#7826) --- test/unit/app/account-import-strategies.spec.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/unit/app/account-import-strategies.spec.js b/test/unit/app/account-import-strategies.spec.js index ab7b0136d..1a8953bc1 100644 --- a/test/unit/app/account-import-strategies.spec.js +++ b/test/unit/app/account-import-strategies.spec.js @@ -13,25 +13,25 @@ describe('Account Import Strategies', function () { }) it('throws an error for empty string private key', async () => { - assert.rejects(async function () { + return assert.rejects(async function () { await accountImporter.importAccount('Private Key', [ '' ]) }, Error, 'no empty strings') }) it('throws an error for undefined string private key', async () => { - assert.rejects(async function () { + return assert.rejects(async function () { await accountImporter.importAccount('Private Key', [ undefined ]) }) }) it('throws an error for undefined string private key', async () => { - assert.rejects(async function () { + return assert.rejects(async function () { await accountImporter.importAccount('Private Key', []) }) }) it('throws an error for invalid private key', async () => { - assert.rejects(async function () { + return assert.rejects(async function () { await accountImporter.importAccount('Private Key', [ 'popcorn' ]) }) })