Skip to content

Commit

Permalink
test: avoid lint with auto fix (#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
acyza authored Dec 28, 2022
1 parent a8d4539 commit bc4cc95
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"ts-test": "tsc -p ./test/fixtures/types/tsconfig.json",
"test": "egg-bin test && npm run ts-test",
"cov": "egg-bin cov",
"lint": "eslint . --fix",
"lint-fix": "eslint . --fix",
"lint": "eslint .",
"ci": "npm run lint && npm run ts-test && npm run cov"
},
"repository": {
Expand Down
8 changes: 4 additions & 4 deletions test/zip/uncompress_stream.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -229,16 +229,16 @@ describe('test/zip/uncompress_stream.test.js', () => {
});

it('should emit error if uncompress source is undefined', done => {
const timeout = setTimeout(()=>{
done("uncompress timeout");
const timeout = setTimeout(() => {
done('uncompress timeout');
}, 1000);
try {
compressing.zip.uncompress(undefined, originalDir)
.finally(() => clearTimeout(timeout));
}catch(err) {
} catch (err) {
clearTimeout(timeout);
assert(err.name === 'IlligalSourceError');
assert(err.message === 'Type is not supported, must be a file path, file buffer, or a readable stream');
done();
}
})
});

0 comments on commit bc4cc95

Please sign in to comment.