fixup: formatting
This commit is contained in:
parent
0fabb3a81d
commit
cbf00ae7aa
@ -73,11 +73,7 @@ describe(
|
|||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
|
||||||
describe(
|
describe("VS Code Routes with no workspace or folder", ["--disable-workspace-trust"], {}, async () => {
|
||||||
"VS Code Routes with no workspace or folder",
|
|
||||||
["--disable-workspace-trust"],
|
|
||||||
{},
|
|
||||||
async () => {
|
|
||||||
test("should redirect to last query folder/workspace", async ({ codeServerPage }) => {
|
test("should redirect to last query folder/workspace", async ({ codeServerPage }) => {
|
||||||
const folder = process.env.CODE_FOLDER_DIR
|
const folder = process.env.CODE_FOLDER_DIR
|
||||||
const workspace = process.env.CODE_WORKSPACE_DIR
|
const workspace = process.env.CODE_WORKSPACE_DIR
|
||||||
@ -92,14 +88,9 @@ describe(
|
|||||||
expect(url.search).toBe(`?folder=${folder}&workspace=${workspace}`)
|
expect(url.search).toBe(`?folder=${folder}&workspace=${workspace}`)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
})
|
||||||
)
|
|
||||||
|
|
||||||
describe(
|
describe("VS Code Routes with no workspace or folder", ["--disable-workspace-trust"], {}, async () => {
|
||||||
"VS Code Routes with no workspace or folder",
|
|
||||||
["--disable-workspace-trust"],
|
|
||||||
{},
|
|
||||||
async () => {
|
|
||||||
test("should not redirect if ew passed in", async ({ codeServerPage }) => {
|
test("should not redirect if ew passed in", async ({ codeServerPage }) => {
|
||||||
const folder = process.env.CODE_FOLDER_DIR
|
const folder = process.env.CODE_FOLDER_DIR
|
||||||
const workspace = process.env.CODE_WORKSPACE_DIR
|
const workspace = process.env.CODE_WORKSPACE_DIR
|
||||||
@ -111,5 +102,4 @@ describe(
|
|||||||
expect(url.pathname).toBe("/")
|
expect(url.pathname).toBe("/")
|
||||||
expect(url.search).toBe("?ew=true")
|
expect(url.search).toBe("?ew=true")
|
||||||
})
|
})
|
||||||
},
|
})
|
||||||
)
|
|
||||||
|
Reference in New Issue
Block a user