add category docker & kube (#276)

This commit is contained in:
Kevin Wan
2020-12-11 18:53:40 +08:00
committed by GitHub
parent 99596a4149
commit da8f76e6bd
10 changed files with 104 additions and 70 deletions

View File

@@ -97,8 +97,7 @@ func TestUpdate(t *testing.T) {
}
assert.Equal(t, "modify", string(data))
err = Update(category)
assert.Nil(t, err)
assert.Nil(t, Update())
data, err = ioutil.ReadFile(mainTpl)
if err != nil {
@@ -109,6 +108,6 @@ func TestUpdate(t *testing.T) {
func TestGetCategory(t *testing.T) {
_ = Clean()
result := GetCategory()
result := Category()
assert.Equal(t, category, result)
}