Skip to content

Commit

Permalink
Tweaked tests
Browse files Browse the repository at this point in the history
Signed-off-by: David Gannon <19214156+dgannon991@users.noreply.github.com>
  • Loading branch information
dgannon991 committed May 16, 2024
1 parent 2809c5b commit a46aa11
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/generator/generator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ func Test_genEmptySet(t *testing.T) {
Source: secrets.Source{Hint: "TODO"},
}

got, err := genEmptySet("emptyset", "", surveyParameters)
got, err := genEmptySet("emptyset", "", SurveyOptions{})
require.NoError(t, err)
require.Equal(t, expected, got)
}

func Test_genSurvey_unsupported(t *testing.T) {
got, err := genSurvey("myturtleset", "", SurveyType("turtles"))
got, err := genSurvey("myturtleset", SurveyType("turtles"), SurveyOptions{})
require.EqualError(t, err, "unsupported survey type: turtles")
require.Equal(t, secrets.SourceMap{}, got)
}
Expand Down

0 comments on commit a46aa11

Please sign in to comment.