Owen Conti
60e8091eed
Add unit test for images in markdown
7 years ago
Owen Conti
1785d48746
Remove .only from existing tests. Add markdown test cases for heading elements.
7 years ago
Owen Conti
5a69603beb
Test for sanitizing <img> elements. Test sanitization of the <Info /> component
7 years ago
Owen Conti
559b315d0d
Initial test for Markdown <script> sanitization
7 years ago
Kyle Shockey
012313e236
Handle cases where maximum and minimum are 0
7 years ago
HelderSepu
a408fb1f23
Correction from @shockey
7 years ago
HelderSepu
515726b386
Add test for negative num
Testing valid negative number with min and max
7 years ago
HelderSepu
7d40d72281
Add validateMaximum & validateMinimum
This address some of the validation requested on Issue #993
7 years ago
Kyle Shockey
de61dccff0
Revert "Revert "Merge pull request #3516 from owenconti/bug/3511-query-formData-parameters""
This reverts commit beeb6b608e
.
7 years ago
HelderSepu
a5c7083726
Add validation for min and max length
7 years ago
Kyle Shockey
beeb6b608e
Revert "Merge pull request #3516 from owenconti/bug/3511-query-formData-parameters"
This reverts commit 6a7e9d2e8881bf34ae0edef714ebc0ed1762ffce, reversing
changes made to eb01beedfa
.
7 years ago
Kyle Shockey
6b59707af1
Fix tests
7 years ago
HelderSepu
e08f31d674
Add UnitTests for validateDateTime & validateGuid
7 years ago
Owen Conti
44ece46cd3
Fixes #3633
Make sure PrimitiveModel uses the schema's title first and then falls back to the passed-in `name` property. Added enzyme test for functionality.
7 years ago
Owen Conti
f63f022e0c
Remove `.only` from utils test
7 years ago
Kyle Shockey
6010245210
Roll back win import removal
Lost in merge conflict....
7 years ago
AlexVangelov
c1abdfb1c4
follow lowercase naming convention in tests
7 years ago
AlexVangelov
4172e33e04
satisfy project lint rules
7 years ago
Owen Conti
33ee880f36
Add extra check for String types in `createDeepLinkPath`. Add `trim()` call on passed-in value in `createDeepLinkPath`. Added unit tests for new deep link util functions.
7 years ago
AlexVangelov
9b1a6141df
OAuth2 authorizationUrl with extra query parameters (should include double '?')
7 years ago
Owen Conti
ef99b7e434
Remove `it.only` from new test
7 years ago
Owen Conti
cb88cd53b6
Added test for response.jsx to make sure properties are passed to `ModelExample` component in the correct order
7 years ago
Kyle Shockey
26edaa5f0b
OAS3 Accept header control: Component-side
7 years ago
Kyle Shockey
5bc096d32b
Fit linter and tests
7 years ago
Mike Gilbode
d7ae284a0c
Add defaultModelRendering parameter.
7 years ago
Mike Gilbode
087ed20384
Add support for requestInterceptor / responseInterceptor.
- Display mutated requests from request interceptor in curl output in UI.
Put this behind showMutatedRequest flag so that the mutation can be
silent.
- Document requestInterceptor, responseInterceptor and showMutatedRequest
in README.md
- Add tests
7 years ago
Kyle Shockey
168e203040
Use hash for body in formData tests
I couldn't find any instances of body being an array when testing
formData with real specs... I think this was a mistake.
7 years ago
Kyle Shockey
049e227c3c
Add small comment to test
7 years ago
Kyle Shockey
b7a3f10f64
Remove it.only
7 years ago
Kyle Shockey
9747559529
operationScheme -> currentScheme
7 years ago
Kyle Shockey
9dee2daa14
Fix global state issues with Schemes component
7 years ago
Kyle Shockey
ed6a4fffb9
initialize mainPage variable (for linter)
7 years ago
Kyle Shockey
49bb139736
1.json -> petstore.json
7 years ago
Kenny
543d34d009
write the test in multiple files
7 years ago
Kenny
c7af68b06d
Rehydrate test code
7 years ago
Owen Conti
7a694e287a
Change name format to `in.name` and update tests
7 years ago
Kyle Shockey
9af5d2dc66
Add writeOnly support to sampleFromSchema; add tests for the same
7 years ago
Kyle Shockey
37f9d5aa29
Add tests
7 years ago
Owen Conti
ce8adb91a5
Fix failing selector test
7 years ago
Kenny
c38ba45aa0
Fix base url.
7 years ago
Kenny
3e212655ae
add some test
7 years ago
Kenny
144c8b2eee
finish overall test
7 years ago
Kenny
dbe3c3194f
writing mock data test for pet
7 years ago
Kyle Shockey
b373182afe
ESLint fixes
7 years ago
Kenny
0e552c2116
Write test for UI
7 years ago
Owen Conti
f570ffcd82
Reimplemented changes from PR #3427 . Added fix for validating request bodies.
7 years ago
Owen Conti
87e7142f1f
Revert "Update parameter <select> elements to render 'invalid' classes. Add '.invalid' CSS for <select> elements. Rework validateParam() function. Added .btn-sm class for "Add item" and "Remove item" buttons in array parameters. Reduce border-width on <select> elements inside parameters. Update tests for utils.validateParam()."
This reverts commit 666e22f989
.
7 years ago
Kyle Shockey
5c70134f53
Revert "Merge pull request #3427 from owenconti/bug/3414-validate-params-reworked"
Reopens #3414
This reverts commit 99d368673b4fbd640b15fe85e5c9af52179dc749, reversing
changes made to 8bf9037bbc
.
7 years ago
Owen Conti
666e22f989
Update parameter <select> elements to render 'invalid' classes. Add '.invalid' CSS for <select> elements. Rework validateParam() function. Added .btn-sm class for "Add item" and "Remove item" buttons in array parameters. Reduce border-width on <select> elements inside parameters. Update tests for utils.validateParam().
7 years ago
Leon Weidauer
25c63b5f76
Fix length issue in OrderedMaps
Previously, a definiton with a 'length' property with numeric value
would result in an OrderedMap of that length.
This is now fixed and covered by tests
7 years ago