Skip to content

Commit

Permalink
fix: fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
1000ch committed May 30, 2020
1 parent eee3b39 commit 9faa2e6
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
});

0 comments on commit 9faa2e6

Please sign in to comment.