Skip to content

Commit c346f5c

Browse files
authored
fix: linting issues (#494)
1 parent d558320 commit c346f5c

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Diff for: test/request-error.test.ts

+5-3
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
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

0 commit comments

Comments
 (0)