mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Remove not needed properties from test
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
This commit is contained in:
parent
db5873319f
commit
4e09ebdd33
@ -35,12 +35,10 @@ describe("static-file-route", () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it("blocks path traversal attacks", async () => {
|
it("blocks path traversal attacks", async () => {
|
||||||
|
|
||||||
const request = {
|
const request = {
|
||||||
params: {
|
params: {
|
||||||
path: "../index.ts",
|
path: "../index.ts",
|
||||||
},
|
},
|
||||||
response: {},
|
|
||||||
raw: {},
|
raw: {},
|
||||||
} as LensApiRequest<any>;
|
} as LensApiRequest<any>;
|
||||||
|
|
||||||
@ -58,7 +56,6 @@ describe("static-file-route", () => {
|
|||||||
params: {
|
params: {
|
||||||
path: "router.test.ts",
|
path: "router.test.ts",
|
||||||
},
|
},
|
||||||
response: {},
|
|
||||||
raw: { req },
|
raw: { req },
|
||||||
} as LensApiRequest<any>;
|
} as LensApiRequest<any>;
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user