@@ -222,7 +222,7 @@ test('schema with const and null as type', (t) => {
222
222
const validate = ajv . compile ( schema )
223
223
const stringify = build ( schema )
224
224
225
- t . throws ( ( ) => stringify ( { foo : null } ) , new Error ( "The value of '\ #/properties/foo' does not match schema definition." ) )
225
+ t . throws ( ( ) => stringify ( { foo : null } ) , new Error ( "The value of '#/properties/foo' does not match schema definition." ) )
226
226
t . not ( validate ( { foo : null } ) )
227
227
228
228
t . equal ( stringify ( { foo : 'baz' } ) , '{"foo":"baz"}' )
@@ -243,7 +243,7 @@ test('schema with const as nullable', (t) => {
243
243
const validate = ajv . compile ( schema )
244
244
const stringify = build ( schema )
245
245
246
- t . throws ( ( ) => stringify ( { foo : null } ) , new Error ( "The value of '\ #/properties/foo' does not match schema definition." ) )
246
+ t . throws ( ( ) => stringify ( { foo : null } ) , new Error ( "The value of '#/properties/foo' does not match schema definition." ) )
247
247
t . not ( validate ( { foo : null } ) )
248
248
249
249
t . equal ( stringify ( { foo : 'baz' } ) , '{"foo":"baz"}' )
@@ -266,6 +266,6 @@ test('schema with const and invalid object', (t) => {
266
266
const validate = ajv . compile ( schema )
267
267
const stringify = build ( schema )
268
268
269
- t . throws ( ( ) => stringify ( input ) , new Error ( "The value of '\ #/properties/foo' does not match schema definition." ) )
269
+ t . throws ( ( ) => stringify ( input ) , new Error ( "The value of '#/properties/foo' does not match schema definition." ) )
270
270
t . not ( validate ( input ) )
271
271
} )
0 commit comments