replaced ISO 8601 test with regular expression #260
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi,
I've recently finished a backend impl (#202), but had trouble with the postman test, because SQLite I've used for the project uses 3 more decimals for microseconds, which get lost in the new
Date(t).toISOString()
conversion and fail the tests, even though it's a valid ISO 8601 date format.I've adapted the regex from https://stackoverflow.com/a/3143231/3210255.
I also tried to set the regex as a variable in the collection with:
and using it in the tests with:
to avoid repetition, but I couldn't get it to work in newman (with latest version 4.1.0), only in postman, so I left it out.