Skip to content

Commit f7602c5

Browse files
JemDaydaveshanley
authored andcommitted
- Address review comments
1 parent 66851f7 commit f7602c5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

helpers/schema_compiler_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,15 @@ const objectSchema = `{
3434
func Test_SchemaWithNilOptions(t *testing.T) {
3535
jsch, err := NewCompiledSchema("test", []byte(stringSchema), nil)
3636

37-
require.Nil(t, err, "Failed to compile Schema")
37+
require.NoError(t, err, "Failed to compile Schema")
3838
require.NotNil(t, jsch, "Did not return a compiled schema")
3939
}
4040

4141
func Test_SchemaWithDefaultOptions(t *testing.T) {
4242
valOptions := config.NewValidationOptions()
4343
jsch, err := NewCompiledSchema("test", []byte(stringSchema), valOptions)
4444

45-
require.Nil(t, err, "Failed to compile Schema")
45+
require.NoError(t, err, "Failed to compile Schema")
4646
require.NotNil(t, jsch, "Did not return a compiled schema")
4747
}
4848

@@ -51,15 +51,15 @@ func Test_SchemaWithOptions(t *testing.T) {
5151

5252
jsch, err := NewCompiledSchema("test", []byte(stringSchema), valOptions)
5353

54-
require.Nil(t, err, "Failed to compile Schema")
54+
require.NoError(t, err, "Failed to compile Schema")
5555
require.NotNil(t, jsch, "Did not return a compiled schema")
5656
}
5757

5858
func Test_ObjectSchema(t *testing.T) {
5959
valOptions := config.NewValidationOptions()
6060
jsch, err := NewCompiledSchema("test", []byte(objectSchema), valOptions)
6161

62-
require.Nil(t, err, "Failed to compile Schema")
62+
require.NoError(t, err, "Failed to compile Schema")
6363
require.NotNil(t, jsch, "Did not return a compiled schema")
6464
}
6565

0 commit comments

Comments
 (0)