Skip to content

Commit bc4cc95

Browse files
authored
test: avoid lint with auto fix (#80)
1 parent a8d4539 commit bc4cc95

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
"ts-test": "tsc -p ./test/fixtures/types/tsconfig.json",
99
"test": "egg-bin test && npm run ts-test",
1010
"cov": "egg-bin cov",
11-
"lint": "eslint . --fix",
11+
"lint-fix": "eslint . --fix",
12+
"lint": "eslint .",
1213
"ci": "npm run lint && npm run ts-test && npm run cov"
1314
},
1415
"repository": {

test/zip/uncompress_stream.test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -229,16 +229,16 @@ describe('test/zip/uncompress_stream.test.js', () => {
229229
});
230230

231231
it('should emit error if uncompress source is undefined', done => {
232-
const timeout = setTimeout(()=>{
233-
done("uncompress timeout");
232+
const timeout = setTimeout(() => {
233+
done('uncompress timeout');
234234
}, 1000);
235235
try {
236236
compressing.zip.uncompress(undefined, originalDir)
237237
.finally(() => clearTimeout(timeout));
238-
}catch(err) {
238+
} catch (err) {
239239
clearTimeout(timeout);
240240
assert(err.name === 'IlligalSourceError');
241241
assert(err.message === 'Type is not supported, must be a file path, file buffer, or a readable stream');
242242
done();
243243
}
244-
})
244+
});

0 commit comments

Comments
 (0)