Archived
1
0

Run formatter

Not sure why CI missed these, will have to look into it.
This commit is contained in:
Asher 2023-09-11 09:26:59 -08:00
parent a76e5241b6
commit 3e1c00e017
No known key found for this signature in database
GPG Key ID: D63C1EF81242354A
5 changed files with 7 additions and 7 deletions

View File

@ -1,7 +1,7 @@
import i18next, { init } from "i18next" import i18next, { init } from "i18next"
import * as en from "./locales/en.json" import * as en from "./locales/en.json"
import * as zhCn from "./locales/zh-cn.json"
import * as th from "./locales/th.json" import * as th from "./locales/th.json"
import * as zhCn from "./locales/zh-cn.json"
init({ init({
lng: "en", lng: "en",
fallbackLng: "en", // language to use if translations in user language are not available. fallbackLng: "en", // language to use if translations in user language are not available.

View File

@ -5,8 +5,8 @@ import * as path from "path"
import { CookieKeys } from "../../common/http" import { CookieKeys } from "../../common/http"
import { rootPath } from "../constants" import { rootPath } from "../constants"
import { authenticated, getCookieOptions, redirect, replaceTemplates } from "../http" import { authenticated, getCookieOptions, redirect, replaceTemplates } from "../http"
import { getPasswordMethod, handlePasswordValidation, sanitizeString, escapeHtml } from "../util"
import i18n from "../i18n" import i18n from "../i18n"
import { getPasswordMethod, handlePasswordValidation, sanitizeString, escapeHtml } from "../util"
// RateLimiter wraps around the limiter library for logins. // RateLimiter wraps around the limiter library for logins.
// It allows 2 logins every minute plus 12 logins every hour. // It allows 2 logins every minute plus 12 logins every hour.

View File

@ -1,5 +1,5 @@
import { describe, test, expect } from "./baseFixture"
import { clean, getMaybeProxiedPathname } from "../utils/helpers" import { clean, getMaybeProxiedPathname } from "../utils/helpers"
import { describe, test, expect } from "./baseFixture"
const routes = ["/", "/vscode", "/vscode/"] const routes = ["/", "/vscode", "/vscode/"]
@ -103,7 +103,7 @@ describe("VS Code Routes with no workspace or folder", ["--disable-workspace-tru
// Closing the folder should stop the redirecting. // Closing the folder should stop the redirecting.
await codeServerPage.navigate("/?ew=true") await codeServerPage.navigate("/?ew=true")
let url = new URL(codeServerPage.page.url()) const url = new URL(codeServerPage.page.url())
const pathname = getMaybeProxiedPathname(url) const pathname = getMaybeProxiedPathname(url)
expect(pathname).toBe("/") expect(pathname).toBe("/")
expect(url.search).toBe("?ew=true") expect(url.search).toBe("?ew=true")

View File

@ -1,6 +1,6 @@
import { mockLogger } from "../../../utils/helpers"
import * as httpserver from "../../../utils/httpserver" import * as httpserver from "../../../utils/httpserver"
import * as integration from "../../../utils/integration" import * as integration from "../../../utils/integration"
import { mockLogger } from "../../../utils/helpers"
describe("vscode", () => { describe("vscode", () => {
let codeServer: httpserver.HttpServer | undefined let codeServer: httpserver.HttpServer | undefined

View File

@ -1,8 +1,8 @@
import { promises as fs } from "fs"
import * as path from "path"
import { workspaceDir } from "./constants" import { workspaceDir } from "./constants"
import { clean, tmpdir } from "./helpers" import { clean, tmpdir } from "./helpers"
import * as wtfnode from "./wtfnode" import * as wtfnode from "./wtfnode"
import * as path from "path"
import { promises as fs } from "fs"
/** /**
* Perform workspace cleanup and authenticate. This should be ran before e2e * Perform workspace cleanup and authenticate. This should be ran before e2e