Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
rjs_json_form
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boris Kocherov
rjs_json_form
Commits
ce1f4e38
Commit
ce1f4e38
authored
Aug 30, 2018
by
Boris Kocherov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tests: adopt two tests
parent
41a31511
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletion
+14
-1
test/jsonform_test.js
test/jsonform_test.js
+14
-1
No files found.
test/jsonform_test.js
View file @
ce1f4e38
...
...
@@ -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
=
{
// `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
=
[
...
...
@@ -211,7 +224,7 @@
assert
.
notOk
(
"
value not parsable:'
"
+
returned_value
+
"
'
\n
"
+
error
);
}
if
(
!
changed
)
{
if
(
!
(
changed
||
settings
.
changed
)
)
{
assert
.
deepEqual
(
returned_value
,
value
,
"
document does not changed while rendered
"
);
}
else
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment