Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc346f5c

Browse files
authored
fix: linting issues (#494)
1 parentd558320 commitc346f5c

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

‎test/request-error.test.ts‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ describe("RequestError", () => {
2727
bar:"baz",
2828
},
2929
headers:{
30-
authorization:""+" ".repeat(100000)+"\n@",
30+
authorization:""+" ".repeat(100000)+"\n@",
3131
},
3232
},
3333
response:{
@@ -43,11 +43,13 @@ describe("RequestError", () => {
4343
});
4444
constendTime=performance.now();
4545
constelapsedTime=endTime-startTime;
46-
constreDosThreshold=2000;
46+
constreDosThreshold=2000;
4747

4848
expect(elapsedTime).toBeLessThanOrEqual(reDosThreshold);
4949
if(elapsedTime>reDosThreshold){
50-
console.warn(`🚨 Potential ReDoS Attack! getDuration method took${elapsedTime.toFixed(2)} ms, exceeding threshold of${reDosThreshold} ms.`);
50+
console.warn(
51+
`🚨 Potential ReDoS Attack! getDuration method took${elapsedTime.toFixed(2)} ms, exceeding threshold of${reDosThreshold} ms.`,
52+
);
5153
}
5254
});
5355

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp