Skip to content

Commit cceaf87

Browse files
committed
Fix formatting in existing module test files
1 parent 8361f87 commit cceaf87

File tree

2 files changed

+24
-6
lines changed

2 files changed

+24
-6
lines changed

registry/coder/modules/kiro/main.test.ts

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,19 +99,28 @@ describe("kiro", async () => {
9999
it("writes ~/.kiro/settings/mcp.json when mcp provided", async () => {
100100
const id = await runContainer("alpine");
101101
try {
102-
const mcp = JSON.stringify({ servers: { demo: { url: "http://localhost:1234" } } });
102+
const mcp = JSON.stringify({
103+
servers: { demo: { url: "http://localhost:1234" } },
104+
});
103105
const state = await runTerraformApply(import.meta.dir, {
104106
agent_id: "foo",
105107
mcp,
106108
});
107-
const script = findResourceInstance(state, "coder_script", "kiro_mcp").script;
109+
const script = findResourceInstance(
110+
state,
111+
"coder_script",
112+
"kiro_mcp",
113+
).script;
108114
const resp = await execContainer(id, ["sh", "-c", script]);
109115
if (resp.exitCode !== 0) {
110116
console.log(resp.stdout);
111117
console.log(resp.stderr);
112118
}
113119
expect(resp.exitCode).toBe(0);
114-
const content = await readFileContainer(id, "/root/.kiro/settings/mcp.json");
120+
const content = await readFileContainer(
121+
id,
122+
"/root/.kiro/settings/mcp.json",
123+
);
115124
expect(content).toBe(mcp);
116125
} finally {
117126
await removeContainer(id);

registry/coder/modules/windsurf/main.test.ts

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,19 +94,28 @@ describe("windsurf", async () => {
9494
it("writes ~/.codeium/windsurf/mcp_config.json when mcp provided", async () => {
9595
const id = await runContainer("alpine");
9696
try {
97-
const mcp = JSON.stringify({ servers: { demo: { url: "http://localhost:1234" } } });
97+
const mcp = JSON.stringify({
98+
servers: { demo: { url: "http://localhost:1234" } },
99+
});
98100
const state = await runTerraformApply(import.meta.dir, {
99101
agent_id: "foo",
100102
mcp,
101103
});
102-
const script = findResourceInstance(state, "coder_script", "windsurf_mcp").script;
104+
const script = findResourceInstance(
105+
state,
106+
"coder_script",
107+
"windsurf_mcp",
108+
).script;
103109
const resp = await execContainer(id, ["sh", "-c", script]);
104110
if (resp.exitCode !== 0) {
105111
console.log(resp.stdout);
106112
console.log(resp.stderr);
107113
}
108114
expect(resp.exitCode).toBe(0);
109-
const content = await readFileContainer(id, "/root/.codeium/windsurf/mcp_config.json");
115+
const content = await readFileContainer(
116+
id,
117+
"/root/.codeium/windsurf/mcp_config.json",
118+
);
110119
expect(content).toBe(mcp);
111120
} finally {
112121
await removeContainer(id);

0 commit comments

Comments
 (0)