Skip to content

Commit 3e1c00e

Browse files
committed
Run formatter
Not sure why CI missed these, will have to look into it.
1 parent a76e524 commit 3e1c00e

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

src/node/i18n/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import i18next, { init } from "i18next"
22
import * as en from "./locales/en.json"
3-
import * as zhCn from "./locales/zh-cn.json"
43
import * as th from "./locales/th.json"
4+
import * as zhCn from "./locales/zh-cn.json"
55
init({
66
lng: "en",
77
fallbackLng: "en", // language to use if translations in user language are not available.

src/node/routes/login.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import * as path from "path"
55
import { CookieKeys } from "../../common/http"
66
import { rootPath } from "../constants"
77
import { authenticated, getCookieOptions, redirect, replaceTemplates } from "../http"
8-
import { getPasswordMethod, handlePasswordValidation, sanitizeString, escapeHtml } from "../util"
98
import i18n from "../i18n"
9+
import { getPasswordMethod, handlePasswordValidation, sanitizeString, escapeHtml } from "../util"
1010

1111
// RateLimiter wraps around the limiter library for logins.
1212
// It allows 2 logins every minute plus 12 logins every hour.

test/e2e/routes.test.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { describe, test, expect } from "./baseFixture"
21
import { clean, getMaybeProxiedPathname } from "../utils/helpers"
2+
import { describe, test, expect } from "./baseFixture"
33

44
const routes = ["/", "/vscode", "/vscode/"]
55

@@ -103,7 +103,7 @@ describe("VS Code Routes with no workspace or folder", ["--disable-workspace-tru
103103

104104
// Closing the folder should stop the redirecting.
105105
await codeServerPage.navigate("/?ew=true")
106-
let url = new URL(codeServerPage.page.url())
106+
const url = new URL(codeServerPage.page.url())
107107
const pathname = getMaybeProxiedPathname(url)
108108
expect(pathname).toBe("/")
109109
expect(url.search).toBe("?ew=true")

test/unit/node/routes/vscode.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
import { mockLogger } from "../../../utils/helpers"
12
import * as httpserver from "../../../utils/httpserver"
23
import * as integration from "../../../utils/integration"
3-
import { mockLogger } from "../../../utils/helpers"
44

55
describe("vscode", () => {
66
let codeServer: httpserver.HttpServer | undefined

test/utils/globalE2eSetup.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1+
import { promises as fs } from "fs"
2+
import * as path from "path"
13
import { workspaceDir } from "./constants"
24
import { clean, tmpdir } from "./helpers"
35
import * as wtfnode from "./wtfnode"
4-
import * as path from "path"
5-
import { promises as fs } from "fs"
66

77
/**
88
* Perform workspace cleanup and authenticate. This should be ran before e2e

0 commit comments

Comments
 (0)