Skip to content

Commit ac8790a

Browse files
committed
refactor: clean up testing files
1 parent a5cf018 commit ac8790a

File tree

5 files changed

+6
-8
lines changed

5 files changed

+6
-8
lines changed

test/browser/pages/login.test.ts renamed to test/unit/browser/pages/login.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { JSDOM } from "jsdom"
2-
import { LocationLike } from "../../unit/util.test"
2+
import { LocationLike } from "../../util.test"
33

44
describe("login", () => {
55
describe("there is an element with id 'base'", () => {

test/unit/browser/vscode.test.ts renamed to test/unit/browser/pages/vscode.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {
66
getNlsConfiguration,
77
nlsConfigElementId,
88
setBodyBackgroundToThemeBackgroundColor,
9-
} from "../../../src/browser/pages/vscode"
9+
} from "../../../../src/browser/pages/vscode"
1010

1111
describe("vscode", () => {
1212
describe("getNlsConfiguration", () => {

test/unit/register.test.ts renamed to test/unit/browser/register.test.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { JSDOM } from "jsdom"
2-
import { registerServiceWorker } from "../../src/browser/register"
3-
import { createLoggerMock } from "../utils/helpers"
4-
import { LocationLike } from "./util.test"
2+
import { registerServiceWorker } from "../../../src/browser/register"
3+
import { createLoggerMock } from "../../utils/helpers"
4+
import { LocationLike } from "../util.test"
55

66
describe("register", () => {
77
describe("when navigator and serviceWorker are defined", () => {

test/unit/node/util.test.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -469,9 +469,7 @@ describe("pathToFsPath", () => {
469469
util
470470
// @ts-expect-error We need to check other types
471471
.pathToFsPath({}),
472-
).toThrow(
473-
`Could not compute fsPath from given uri. Expected path to be of type string, but was of type undefined.`,
474-
)
472+
).toThrow(`Could not compute fsPath from given uri. Expected path to be of type string, but was of type undefined.`)
475473
})
476474
it("should not throw an error for a string array", () => {
477475
// @ts-expect-error We need to check other types

0 commit comments

Comments
 (0)