I have tried with "!== null", but it is returning PASS even when the field is returning 0 or "".
相关问题
- Is there a limit to how many levels you can nest i
- How to toggle on Order in ReactJS
- void before promise syntax
- Keeping track of variable instances
- Can php detect if javascript is on or not?
You gotta place the + [i] after the function you gonna validate on the tests[] so only it will return valid statements on each array. For example,
Result:
PASS Place ID is null
PASS subTypeExtra is null
This works as of Mar-2019:
How about:
try this one:
Postman doesn't reference non-existent paths as null, but as undefined.
This test should fail, as this fake json path is actually undefined.
If you are checking the Id of the first item returned in a list, you could use
not.equal(null)
:Note that the word "equal" is fully spelled out, although the shortened "eql" does work.