File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ describe("RequestError", () => {
27
27
bar : "baz" ,
28
28
} ,
29
29
headers : {
30
- authorization : "" + " " . repeat ( 100000 ) + "\n@" ,
30
+ authorization : "" + " " . repeat ( 100000 ) + "\n@" ,
31
31
} ,
32
32
} ,
33
33
response : {
@@ -43,11 +43,13 @@ describe("RequestError", () => {
43
43
} ) ;
44
44
const endTime = performance . now ( ) ;
45
45
const elapsedTime = endTime - startTime ;
46
- const reDosThreshold = 2000 ;
46
+ const reDosThreshold = 2000 ;
47
47
48
48
expect ( elapsedTime ) . toBeLessThanOrEqual ( reDosThreshold ) ;
49
49
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
+ ) ;
51
53
}
52
54
} ) ;
53
55
You can’t perform that action at this time.
0 commit comments