Commit 4d4b5872
4d4b5872fdb6Merged
Sviatoslav Dumchenko <[email protected]> ยท 3 years ago ยท 2 files ยท ~2 modified
Description
chore: fix last jsonschema tests
Details
- Commit
- 4d4b5872fdb6
- Parent
- b9282a25f615
pkg/hooks/config_test.gomodifiedView file
@@ -18,14 +18,15 @@
1818
}1919
2020
func (s *ConfigTestSuite) TestHooksJSONSchema() {21-
schema := jsonschema.Reflect(hooks.Hooks{})21+
schema := hooks.Hooks{}.JSONSchema()2222
2323
s.Require().NotNil(schema)2424
s.Require().Equal("array", schema.Type)2525
}2626
2727
func (s *ConfigTestSuite) TestHookJSONSchema() {28-
schema := jsonschema.Reflect(hooks.NewHook())28+
reflector := &jsonschema.Reflector{DoNotReference: true}29+
schema := reflector.Reflect(hooks.NewHook())2930
3031
s.Require().NotNil(schema)3132
pkg/release/values_test.gomodifiedView file
Loading diffโฆ