09ab92017c
* Switch JSON path tests to strict equality
The tests for `stringifyPath` and `parsePath` were using
[`assert.deepEqual`](https://nodejs.org/api/assert.html#assert_assert_deepequal_actual_expected_message),
which was causing the tests to pass when they should not have. Beyond
that, the `deepEqual` method is deprecated. The suggested replacement is
[`assert.deepStrictEqual`](https://nodejs.org/api/assert.html#assert_assert_deepstrictequal_actual_expected_message),
which causes the tests to fail where they should.
The difference between the two methods is the different between `==` and
`===`. `deepEqual` would coerce the input `"2"` to `2`, so the test was
passing even though the output was of the wrong type (string instead of
number).
* Coerce numeric indices to numbers in parsePath
This fixes a regression introduced in
|
||
---|---|---|
.. | ||
Node.test.js | ||
couchdbeditor.html | ||
largefile.json | ||
setup.js | ||
test_bootstrap.html | ||
test_build.html | ||
test_build_min.html | ||
test_color_picker.html | ||
test_destroy.html | ||
test_large_array.html | ||
test_materialize.html | ||
test_minimalist_min.html | ||
test_schema.html | ||
test_update.html | ||
util.test.js |