From fe6e24cdb85a6781c28bcbb0c2b8d66e0e3680bb Mon Sep 17 00:00:00 2001 From: Timo Hocker Date: Sat, 7 Mar 2020 18:26:19 +0100 Subject: [PATCH] fix --- test/index.js | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/test/index.js b/test/index.js index d9eeec8..76bcf53 100644 --- a/test/index.js +++ b/test/index.js @@ -23,6 +23,7 @@ test.before (() => { ); res.end (str); }) + // eslint-disable-next-line no-magic-numbers .listen (3000); }); @@ -36,14 +37,14 @@ test ('send request', async (t) => { ); }); -test ('fail salt', (t) => { - t.throwsAsync (async () => { - await client.login ('fail', 'bar', 'http://localhost:3000'); - }); +test ('fail salt', async (t) => { + await t.throwsAsync ( + client.login ('fail', 'bar', 'http://localhost:3000') + ); }); -test ('fail password', (t) => { - t.throwsAsync (async () => { - await client.login ('foo', 'fail', 'http://localhost:3000'); - }); +test ('fail password', async (t) => { + await t.throwsAsync ( + client.login ('foo', 'fail', 'http://localhost:3000') + ); });