Skip to content

Commit a735594

Browse files
Copilotfengmk2
andcommitted
fix: remove unused comments in timeout test and skip lint on Node.js < 18
Co-authored-by: fengmk2 <156269+fengmk2@users.noreply.github.com>
1 parent 9e5d783 commit a735594

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "2.5.0",
44
"description": "A collection of useful utilities.",
55
"scripts": {
6-
"lint": "oxlint src test",
6+
"lint": "node -e \"process.exit(parseInt(process.versions.node) < 18 ? 0 : 1)\" || oxlint src test",
77
"pretest": "npm run lint -- --fix && npm run prepublishOnly",
88
"test": "egg-bin test",
99
"test-local": "egg-bin test",

test/timeout.test.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ describe('test/timeout.test.ts', () => {
1919
assert(err instanceof TimeoutError);
2020
assert.equal(err.timeout, 10);
2121
assert.equal(err.message, 'Timed out after 10ms');
22-
// Console.error(err);
2322
return true;
2423
});
2524

@@ -31,7 +30,6 @@ describe('test/timeout.test.ts', () => {
3130
assert(err instanceof TimeoutError);
3231
assert.equal(err.timeout, 15);
3332
assert.equal(err.message, 'Timed out after 15ms');
34-
// Console.error(err);
3533
return true;
3634
});
3735
});
@@ -53,7 +51,6 @@ describe('test/timeout.test.ts', () => {
5351
assert(err instanceof TimeoutError);
5452
assert.equal(err.timeout, 10);
5553
assert.equal(err.message, 'Timed out after 10ms');
56-
// Console.error(err);
5754
return true;
5855
});
5956
});

0 commit comments

Comments
 (0)