From 9faa2e6a91258e0fcc7fb5ac684aa987aba66ee1 Mon Sep 17 00:00:00 2001 From: 1000ch Date: Sat, 30 May 2020 12:36:47 +0900 Subject: [PATCH] fix: fix lint issues --- test/test.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/test/test.js b/test/test.js index 4948e42..bc7a7e2 100644 --- a/test/test.js +++ b/test/test.js @@ -4,22 +4,22 @@ const execa = require('execa'); const simplehttp2server = require('..'); test('return path to binary and verify that it is working', async t => { - let res = ''; + let output = ''; try { - res += await execa(simplehttp2server, ['--help']); + output += await execa(simplehttp2server, ['--help']); } catch (error) { // It will fail, as the exit status code of the executable is 2 - res += error; + output += error; } if ( - /Usage of/m.test(res) && - /-config string/m.test(res) && - /-cors string/m.test(res) && - /-listen string/m.test(res) + /Usage of/m.test(output) && + /-config string/m.test(output) && + /-cors string/m.test(output) && + /-listen string/m.test(output) ) { t.pass(); } else { - t.fail(res); + t.fail(output); } });