Skip to content

Commit 3bd2372

Browse files
committed
fix: path test
1 parent 633edff commit 3bd2372

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

test/adapters/call-hierarchy-adapter.test.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { createSpyConnection, createFakeEditor } from "../helpers.js"
44
import { Point, Range } from "atom"
55
import type { TextEditor } from "atom"
66

7+
let originalPlatform: NodeJS.Platform
78
const setProcessPlatform = (platform: any) => {
89
Object.defineProperty(process, "platform", { value: platform })
910
}
@@ -34,13 +35,17 @@ const callHierarchyItemInWin32: ls.CallHierarchyItem = {
3435
selectionRange: { start: { line: 0, character: 24 }, end: { line: 0, character: 29 } },
3536
}
3637

37-
describe("OutlineViewAdapter", () => {
38+
describe("CallHierarchyAdapter", () => {
3839
let fakeEditor: TextEditor
3940
let connection: ls.LanguageClientConnection
4041

4142
beforeEach(() => {
4243
connection = new ls.LanguageClientConnection(createSpyConnection())
4344
fakeEditor = createFakeEditor()
45+
originalPlatform = process.platform
46+
})
47+
afterEach(() => {
48+
Object.defineProperty(process, "platform", { value: originalPlatform })
4449
})
4550

4651
describe("canAdapt", () => {

0 commit comments

Comments
 (0)