Skip to content

Commit 7d06103

Browse files
committed
yarn fmt
1 parent c76683f commit 7d06103

File tree

2 files changed

+15
-11
lines changed

2 files changed

+15
-11
lines changed

src/node/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export const httpProxyUri =
3232
// getVersionString returns a human-readable version string suitable
3333
// for outputting to the console.
3434
export function getVersionString(): string {
35-
return [ version, commit ].join(" ")
35+
return [version, commit].join(" ")
3636
}
3737

3838
// getVersionJsonString returns a machine-readable version string

test/unit/node/constants.test.ts

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,13 @@ describe("constants", () => {
6464
})
6565

6666
it("should return a machine-readable version string", () => {
67-
expect(constants.getVersionJsonString()).toStrictEqual(JSON.stringify({
68-
codeServer: mockPackageJson.version,
69-
commit: mockPackageJson.commit,
70-
vscode: mockCodePackageJson.version,
71-
}))
67+
expect(constants.getVersionJsonString()).toStrictEqual(
68+
JSON.stringify({
69+
codeServer: mockPackageJson.version,
70+
commit: mockPackageJson.commit,
71+
vscode: mockCodePackageJson.version,
72+
}),
73+
)
7274
})
7375

7476
describe("getPackageJson", () => {
@@ -126,11 +128,13 @@ describe("constants", () => {
126128
})
127129

128130
it("should return a machine-readable version string", () => {
129-
expect(constants.getVersionJsonString()).toStrictEqual(JSON.stringify({
130-
codeServer: "development",
131-
commit: "development",
132-
vscode: "development",
133-
}))
131+
expect(constants.getVersionJsonString()).toStrictEqual(
132+
JSON.stringify({
133+
codeServer: "development",
134+
commit: "development",
135+
vscode: "development",
136+
}),
137+
)
134138
})
135139
})
136140
})

0 commit comments

Comments
 (0)