chore: enable unit tests against prototypeApplication
examples
#476
Annotations
3 errors
tests/usage.test.ts > 'PrototypeApplication' > parsing using the 'jsonschema' library > undefined || 'wtt.consent' > accepts a valid example:
tests/usage.test.ts#L70
AssertionError: expected [ ValidationError{ path: [], …(7) } ] to have a length of +0 but got 1
- Expected
+ Received
- 0
+ 1
❯ tests/usage.test.ts:70:31
|
tests/usage.test.ts > 'PrototypeApplication' > parsing using the 'ajv' library > undefined || 'wtt.consent' > accepts a valid example:
tests/usage.test.ts#L93
AssertionError: expected [ { …(5) }, { …(5) }, { …(5) }, …(79) ] to be null
- Expected:
null
+ Received:
[
{
"instancePath": "/applicationType",
"keyword": "const",
"message": "must be equal to constant",
"params": {
"allowedValue": "ldc",
},
"schemaPath": "#/definitions/LDCApplicationType/anyOf/0/const",
},
{
"instancePath": "/applicationType",
"keyword": "const",
"message": "must be equal to constant",
"params": {
"allowedValue": "ldc.breachOfCondition",
},
"schemaPath": "#/definitions/LDCApplicationType/anyOf/1/const",
},
{
"instancePath": "/applicationType",
"keyword": "const",
"message": "must be equal to constant",
"params": {
"allowedValue": "ldc.existing",
},
"schemaPath": "#/definitions/LDCApplicationType/anyOf/2/const",
},
{
"instancePath": "/applicationType",
"keyword": "const",
"message": "must be equal to constant",
"params": {
"allowedValue": "ldc.listedBuildingWorks",
},
"schemaPath": "#/definitions/LDCApplicationType/anyOf/3/const",
},
{
"instancePath": "/applicationType",
"keyword": "const",
"message": "must be equal to constant",
"params": {
"allowedValue": "ldc.proposed",
},
"schemaPath": "#/definitions/LDCApplicationType/anyOf/4/const",
},
{
"instancePath": "/applicationType",
"keyword": "anyOf",
"message": "must match a schema in anyOf",
"params": {},
"schemaPath": "#/definitions/LDCApplicationType/anyOf",
},
{
"instancePath": "/applicationType",
"keyword": "const",
"message": "must be equal to constant",
"params": {
"allowedValue": "pa",
},
"schemaPath": "#/definitions/PAApplicationType/anyOf/0/const",
},
{
"instancePath": "/applicationType",
"keyword": "const",
"message": "must be equal to constant",
"params": {
"allowedValue": "pa.part1.classA",
},
"schemaPath": "#/definitions/PAApplicationType/anyOf/1/const",
},
{
"instancePath": "/applicationType",
"keyword": "const",
"message": "must be equal to constant",
"params": {
"allowedValue": "pa.part1.classAA",
},
"schemaPath": "#/definitions/PAApplicationType/anyOf/2/const",
},
{
"instancePath": "/applicationType",
"keyword": "const",
"message": "must be equal to constant",
"params": {
"allowedValue": "pa.part3.classG",
},
"schemaPath": "#/definitions/PAApplicationType/anyOf/3/const",
},
{
"instancePath": "/applicationType",
"keyword": "const",
"message": "must be equal to constant",
"params": {
"allowedValue": "pa.part3.classM",
},
"schemaPath": "#/definitions/PAApplicationType/anyOf/4/const",
},
{
"instancePath": "/applicationType",
"keyword": "const",
"message": "must be equal to constant",
"params": {
"allowedValue": "pa.part3.classMA",
},
"schemaPath": "#/definitions/PAApplicationType/anyOf/5/const",
},
{
"instancePath": "/applicationType",
"keyword": "const",
"message": "must be equal to constant",
"params": {
"allowedValue": "pa.part3.classN",
},
"schemaPath": "#/definitions/PAApplicationType/anyOf/6/const",
},
{
"instancePath": "/applicationType",
"keyword": "const",
"message": "must be equal to constant",
"params": {
"allowedValue": "pa.part3.classQ",
},
"schemaPath": "#/definitions/PAApplicationType/anyOf/7/const",
},
{
"instancePath": "/applicationType",
"keyword": "const",
"message": "must be equal to constant",
"params": {
"allowedValue": "pa.part3.classR",
},
"schemaPath": "#/definitions/PAApplicationType/anyOf/8/const",
},
{
"instancePath": "/applicationType",
"keyword": "const",
"message": "must be equal to constant",
"params": {
"allowedValue": "pa.part3.classS",
},
"schemaPath": "#/definitions/PAApplicationType/anyOf/9/const",
},
{
"instancePath": "/applicationType",
"keyword": "const",
"mess
|
test
Process completed with exit code 1.
|