Skip to content

Commit 231e028

Browse files
committed
feat: add digitalocean-region module
1 parent e8592d2 commit 231e028

File tree

1 file changed

+20
-21
lines changed

1 file changed

+20
-21
lines changed

registry/umair/modules/digitalocean-region/main.test.ts

Lines changed: 20 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -10,37 +10,36 @@ describe("digitalocean-region", async () => {
1010

1111
testRequiredVariables(import.meta.dir, {});
1212

13-
1413
it("default output", async () => {
15-
const state = await runTerraformApply(import.meta.dir, {});
16-
expect(state.outputs.value.value).toBe("ams2");
14+
const state = await runTerraformApply(import.meta.dir, {});
15+
expect(state.outputs.value.value).toBe("ams2");
1716
});
1817

1918
it("customized default", async () => {
20-
const state = await runTerraformApply(import.meta.dir, {
21-
regions: '["nyc1","ams3"]',
22-
default: "ams3",
23-
});
24-
expect(state.outputs.value.value).toBe("ams3");
19+
const state = await runTerraformApply(import.meta.dir, {
20+
regions: '["nyc1","ams3"]',
21+
default: "ams3",
22+
});
23+
expect(state.outputs.value.value).toBe("ams3");
2524
});
2625

2726
it("gpu only invalid default", async () => {
28-
const state = await runTerraformApply(import.meta.dir, {
29-
regions: '["nyc1"]',
30-
default: "nyc1",
31-
gpu_only: "true",
32-
});
33-
expect(state.outputs.value.value).toBe("nyc1");
27+
const state = await runTerraformApply(import.meta.dir, {
28+
regions: '["nyc1"]',
29+
default: "nyc1",
30+
gpu_only: "true",
31+
});
32+
expect(state.outputs.value.value).toBe("nyc1");
3433
});
3534

3635
it("gpu only valid default", async () => {
37-
const state = await runTerraformApply(import.meta.dir, {
38-
regions: '["tor1"]',
39-
default: "tor1",
40-
gpu_only: "true",
41-
});
42-
expect(state.outputs.value.value).toBe("tor1");
36+
const state = await runTerraformApply(import.meta.dir, {
37+
regions: '["tor1"]',
38+
default: "tor1",
39+
gpu_only: "true",
40+
});
41+
expect(state.outputs.value.value).toBe("tor1");
4342
});
4443

4544
// Add more tests as needed for coder_parameter_order or other features
46-
});
45+
});

0 commit comments

Comments
 (0)