Skip to content

Commit f00533a

Browse files
committed
fix linting error
1 parent 9c2d6fb commit f00533a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/const.test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ test('schema with const and null as type', (t) => {
222222
const validate = ajv.compile(schema)
223223
const stringify = build(schema)
224224

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."))
226226
t.not(validate({ foo: null }))
227227

228228
t.equal(stringify({ foo: 'baz' }), '{"foo":"baz"}')
@@ -243,7 +243,7 @@ test('schema with const as nullable', (t) => {
243243
const validate = ajv.compile(schema)
244244
const stringify = build(schema)
245245

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."))
247247
t.not(validate({ foo: null }))
248248

249249
t.equal(stringify({ foo: 'baz' }), '{"foo":"baz"}')
@@ -266,6 +266,6 @@ test('schema with const and invalid object', (t) => {
266266
const validate = ajv.compile(schema)
267267
const stringify = build(schema)
268268

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."))
270270
t.not(validate(input))
271271
})

0 commit comments

Comments
 (0)