Projektstart
This commit is contained in:
15
backend/node_modules/fast-json-stringify/test/sanitize3.test.js
generated
vendored
Normal file
15
backend/node_modules/fast-json-stringify/test/sanitize3.test.js
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
'use strict'
|
||||
|
||||
const t = require('tap')
|
||||
const build = require('..')
|
||||
|
||||
t.throws(() => {
|
||||
build({
|
||||
$defs: {
|
||||
type: 'foooo"bar'
|
||||
},
|
||||
patternProperties: {
|
||||
x: { $ref: '#/$defs' }
|
||||
}
|
||||
})
|
||||
}, 'foooo"bar unsupported')
|
||||
Reference in New Issue
Block a user