* Fix #1810 * Remove go embed * Format code * Remove useless code Co-authored-by: anqiansong <anqiansong@bytedance.com>
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user