Skip to content

Commit

Permalink
Tweaked tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dgannon991 committed May 14, 2024
1 parent aa93809 commit 73ab290
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 73ab290

Please sign in to comment.