16 lines
232 B
JavaScript
16 lines
232 B
JavaScript
'use strict'
|
|
|
|
const t = require('tap')
|
|
const build = require('..')
|
|
|
|
t.throws(() => {
|
|
build({
|
|
$defs: {
|
|
type: 'foooo"bar'
|
|
},
|
|
patternProperties: {
|
|
x: { $ref: '#/$defs' }
|
|
}
|
|
})
|
|
}, 'foooo"bar unsupported')
|