Skip to content

Commit

Permalink
add unit test for #106
Browse files Browse the repository at this point in the history
  • Loading branch information
rhysd committed Feb 24, 2022
1 parent 0f7ca73 commit 3843812
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions expr_sema_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -580,6 +580,14 @@ func TestExprSemanticsCheckOK(t *testing.T) {
input: "secrets.any_value",
expected: StringType{},
},
{
what: "automatically supplied secret",
input: "secrets.github_token",
expected: StringType{},
secrets: NewStrictObjectType(map[string]ExprType{
"foo": StringType{},
}),
},
}

for _, tc := range testCases {
Expand Down

0 comments on commit 3843812

Please sign in to comment.