Skip to content

Commit

Permalink
Run formatter
Browse files Browse the repository at this point in the history
Not sure why CI missed these, will have to look into it.
  • Loading branch information
code-asher committed Sep 11, 2023
1 parent a76e524 commit 3e1c00e
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/node/i18n/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import i18next, { init } from "i18next"
import * as en from "./locales/en.json"
import * as zhCn from "./locales/zh-cn.json"
import * as th from "./locales/th.json"
import * as zhCn from "./locales/zh-cn.json"
init({
lng: "en",
fallbackLng: "en", // language to use if translations in user language are not available.
Expand Down
2 changes: 1 addition & 1 deletion src/node/routes/login.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import * as path from "path"
import { CookieKeys } from "../../common/http"
import { rootPath } from "../constants"
import { authenticated, getCookieOptions, redirect, replaceTemplates } from "../http"
import { getPasswordMethod, handlePasswordValidation, sanitizeString, escapeHtml } from "../util"
import i18n from "../i18n"
import { getPasswordMethod, handlePasswordValidation, sanitizeString, escapeHtml } from "../util"

// RateLimiter wraps around the limiter library for logins.
// It allows 2 logins every minute plus 12 logins every hour.
Expand Down
4 changes: 2 additions & 2 deletions test/e2e/routes.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { describe, test, expect } from "./baseFixture"
import { clean, getMaybeProxiedPathname } from "../utils/helpers"
import { describe, test, expect } from "./baseFixture"

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

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

// Closing the folder should stop the redirecting.
await codeServerPage.navigate("/?ew=true")
let url = new URL(codeServerPage.page.url())
const url = new URL(codeServerPage.page.url())
const pathname = getMaybeProxiedPathname(url)
expect(pathname).toBe("/")
expect(url.search).toBe("?ew=true")
Expand Down
2 changes: 1 addition & 1 deletion test/unit/node/routes/vscode.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { mockLogger } from "../../../utils/helpers"
import * as httpserver from "../../../utils/httpserver"
import * as integration from "../../../utils/integration"
import { mockLogger } from "../../../utils/helpers"

describe("vscode", () => {
let codeServer: httpserver.HttpServer | undefined
Expand Down
4 changes: 2 additions & 2 deletions test/utils/globalE2eSetup.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { promises as fs } from "fs"
import * as path from "path"
import { workspaceDir } from "./constants"
import { clean, tmpdir } from "./helpers"
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
Expand Down

0 comments on commit 3e1c00e

Please sign in to comment.