fix: Fix issue #1810 (#1811)

* Fix #1810

* Remove go embed

* Format code

* Remove useless code

Co-authored-by: anqiansong <anqiansong@bytedance.com>
This commit is contained in:
anqiansong
2022-04-21 15:22:43 +08:00
committed by GitHub
parent 2cdff97934
commit 305587aa81
8 changed files with 49 additions and 1 deletions

View File

@@ -26,3 +26,10 @@ func TestParseContent(t *testing.T) {
}
}
}
func TestMissingService(t *testing.T) {
sp, err := ParseContent("")
assert.Nil(t, err)
err = sp.Validate()
assert.Equal(t, spec.ErrMissingService, err)
}