Skip to content

Commit 60c2c48

Browse files
committed
commit
1 parent 06c4364 commit 60c2c48

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/headers.test.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,14 @@ describe("getHeaderCommand", () => {
7474
expect(getHeaderCommand(config)).toBeUndefined()
7575
})
7676

77+
it("should return undefined if coder.headerCommand is not a string", () => {
78+
const config = {
79+
get: () => 1234,
80+
} as unknown as WorkspaceConfiguration
81+
82+
expect(getHeaderCommand(config)).toBeUndefined()
83+
})
84+
7785
it("should return coder.headerCommand if set in config", () => {
7886
vi.stubEnv("CODER_HEADER_COMMAND", "printf 'x=y'")
7987

0 commit comments

Comments
 (0)