fix(sorter): Adds missing unit test

Adds a unit test that was missed as part of #2961
pull/2984/head
Taylor Thomas 7 years ago
parent 962191b929
commit 333f8dd354

@ -49,6 +49,10 @@ func TestKindSorter(t *testing.T) {
Name: "r",
Head: &util.SimpleHead{Kind: "Deployment"},
},
{
Name: "1",
Head: &util.SimpleHead{Kind: "StorageClass"},
},
{
Name: "!",
Head: &util.SimpleHead{Kind: "HonkyTonkSet"},
@ -128,8 +132,8 @@ func TestKindSorter(t *testing.T) {
order SortOrder
expected string
}{
{"install", InstallOrder, "abcdefghijklmnopqrstuvw!"},
{"uninstall", UninstallOrder, "wvmutsrqponlkjihgfedcba!"},
{"install", InstallOrder, "abcde1fghijklmnopqrstuvw!"},
{"uninstall", UninstallOrder, "wvmutsrqponlkjihgf1edcba!"},
} {
var buf bytes.Buffer
t.Run(test.description, func(t *testing.T) {

Loading…
Cancel
Save