Commit ce1f4e38 authored by Boris Kocherov's avatar Boris Kocherov

tests: adopt two tests

parent 41a31511
...@@ -127,7 +127,20 @@ ...@@ -127,7 +127,20 @@
}); });
}); });
// Json schema test suite written for validator check i use it for form generator check,
// so i need change some tests.
test_settings = { test_settings = {
// `null` type field used so json_document changed on render and invert validation
"allOf with base schema: mismatch second allOf": {
invert_valid: true,
changed: true
},
// schema.default used for field if field undefined so json_document changed after
// render() and valid status inverted
"invalid string value for default: still valid when the invalid default is used": {
invert_valid: true,
changed: true
}
}; };
skip_files = [ skip_files = [
...@@ -211,7 +224,7 @@ ...@@ -211,7 +224,7 @@
assert.notOk("value not parsable:'" + assert.notOk("value not parsable:'" +
returned_value + "'\n" + error); returned_value + "'\n" + error);
} }
if (!changed) { if (!(changed || settings.changed)) {
assert.deepEqual(returned_value, value, assert.deepEqual(returned_value, value,
"document does not changed while rendered"); "document does not changed while rendered");
} else { } else {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment