We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 06c4364 commit 60c2c48Copy full SHA for 60c2c48
src/headers.test.ts
@@ -74,6 +74,14 @@ describe("getHeaderCommand", () => {
74
expect(getHeaderCommand(config)).toBeUndefined()
75
})
76
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
85
it("should return coder.headerCommand if set in config", () => {
86
vi.stubEnv("CODER_HEADER_COMMAND", "printf 'x=y'")
87
0 commit comments