Merge pull request #7608 from q384566678/add-gate-test

pkg/gates: add unit test for String
pull/7645/head
Matthew Fisher 5 years ago committed by GitHub
commit 09f49458b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -45,3 +45,12 @@ func TestError(t *testing.T) {
t.Errorf("incorrect error message. Received %s", g.Error().Error())
}
}
func TestString(t *testing.T) {
os.Unsetenv(name)
g := Gate(name)
if g.String() != "HELM_EXPERIMENTAL_FEATURE" {
t.Errorf("incorrect string representation. Received %s", g.String())
}
}

Loading…
Cancel
Save