forked from koumoul-dev/vuetify-jsonschema-form
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_resolved-schema.js
More file actions
27 lines (21 loc) · 742 Bytes
/
_resolved-schema.js
File metadata and controls
27 lines (21 loc) · 742 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
const id = '_resolved_schema'
const title = 'resolved schema'
const description = `Test case around schema with $ref elements`
const schema = {
type: 'object',
properties: {
stringProp: { type: 'string', title: `I'm a string`, description: 'This description is used as a help message.' },
refProp1: { $ref: '#/definitions/prop' }
// refProp2: { $ref: '#/definitions/missingProp' }
},
definitions: {
prop: { type: 'string', title: `I'm a prop resolved from a $ref` }
}
}
const model = {}
const test = (wrapper) => {
const properties = wrapper.findAll('.vjsf-property')
expect(properties).toHaveLength(3)
expect(wrapper.vm.valid).toBe(true)
}
export default { id, title, description, schema, model, test }