We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parentd558320 commitc346f5cCopy full SHA for c346f5c
test/request-error.test.ts
@@ -27,7 +27,7 @@ describe("RequestError", () => {
27
bar:"baz",
28
},
29
headers:{
30
-authorization:""+" ".repeat(100000)+"\n@",
+authorization:""+" ".repeat(100000)+"\n@",
31
32
33
response:{
@@ -43,11 +43,13 @@ describe("RequestError", () => {
43
});
44
constendTime=performance.now();
45
constelapsedTime=endTime-startTime;
46
-constreDosThreshold=2000;
+constreDosThreshold=2000;
47
48
expect(elapsedTime).toBeLessThanOrEqual(reDosThreshold);
49
if(elapsedTime>reDosThreshold){
50
-console.warn(`🚨 Potential ReDoS Attack! getDuration method took${elapsedTime.toFixed(2)} ms, exceeding threshold of${reDosThreshold} ms.`);
+console.warn(
51
+`🚨 Potential ReDoS Attack! getDuration method took${elapsedTime.toFixed(2)} ms, exceeding threshold of${reDosThreshold} ms.`,
52
+);
53
}
54
55