Skip to content

Commit

Permalink
Config: Update cli_flags_test.go
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Mayer <michael@photoprism.app>
  • Loading branch information
lastzero committed May 3, 2023
1 parent c405f6e commit b9181be
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/config/cli_flags_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ func TestCliFlags_Cli(t *testing.T) {
func TestCliFlags_Find(t *testing.T) {
cliFlags := Flags.Cli()
standard := Flags.Find([]string{})
sponsor := Flags.Find([]string{EnvSponsor})
essentials := Flags.Find([]string{Essentials})
other := Flags.Find([]string{"other"})

assert.Equal(t, len(standard), len(other))
assert.Equal(t, len(cliFlags), len(sponsor))
assert.Less(t, len(other), len(sponsor))
assert.Equal(t, len(cliFlags), len(essentials))
assert.Less(t, len(other), len(essentials))
}

0 comments on commit b9181be

Please sign in to comment.