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", () => {
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 const endTime = performance . now ( ) ;
4545 const elapsedTime = endTime - startTime ;
46- const reDosThreshold = 2000 ;
46+ const reDosThreshold = 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
You can’t perform that action at this time.
0 commit comments