@@ -73,7 +73,7 @@ func Test_ValidJSONSchemaWithInvalidContent(t *testing.T) {
7373
7474 jsch , err := NewCompiledSchema ("test" , []byte (badSchema ), nil )
7575
76- assert .NoError (t , err , "Expected an error to be thrown" )
76+ assert .Error (t , err , "Expected an error to be thrown" )
7777 assert .Nil (t , jsch , "invalid schema compiled!" )
7878}
7979
@@ -87,7 +87,7 @@ func Test_MalformedSONSchema(t *testing.T) {
8787
8888 jsch , err := NewCompiledSchema ("test" , []byte (badSchema ), nil )
8989
90- assert .NoError (t , err , "Expected an error to be thrown" )
90+ assert .Error (t , err , "Expected an error to be thrown" )
9191 assert .Nil (t , jsch , "invalid schema compiled!" )
9292}
9393
@@ -108,6 +108,6 @@ func Test_ValidJSONSchemaWithIncompleteContent(t *testing.T) {
108108
109109 jsch , err := NewCompiledSchema ("test" , []byte (incompleteSchema ), nil )
110110
111- assert .NoError (t , err , "Expected an error to be thrown" )
111+ assert .Error (t , err , "Expected an error to be thrown" )
112112 assert .Nil (t , jsch , "invalid schema compiled!" )
113113}
0 commit comments