Skip to content

Commit f8d9cdc

Browse files
committed
add to unit test
1 parent 2db439c commit f8d9cdc

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

preview_test.go

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,14 +76,26 @@ func Test_Extract(t *testing.T) {
7676
"numerical": ap().value("5"),
7777
},
7878
},
79+
{
80+
name: "chain-no-inputs",
81+
dir: "chain",
82+
input: preview.Input{
83+
ParameterValues: map[string]string{},
84+
},
85+
expTags: map[string]string{},
86+
unknownTags: []string{},
87+
params: map[string]assertParam{
88+
"git_repo": apWithDiags().errorDiagnostics("Required"),
89+
},
90+
},
7991
{
8092
name: "chain-inputs",
8193
dir: "chain",
8294
input: preview.Input{
8395
ParameterValues: map[string]string{
84-
//"git_repo": "coder/coder",
85-
//"ide_selector": `["goland"]`,
86-
//"cpu_cores": "4",
96+
"git_repo": "coder/coder",
97+
"ide_selector": `["goland"]`,
98+
"cpu_cores": "4",
8799
},
88100
},
89101
expTags: map[string]string{},

0 commit comments

Comments
 (0)