jsoneditor/test
Adam Vigneaux 09ab92017c Fix JSON path parsing for array indices (#679)
* 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
3e7e1cebfd.
2019-03-28 19:49:36 +01:00
..
Node.test.js Fix Node._findSchema bug when path is not present in schema 2019-03-15 15:29:08 -04:00
couchdbeditor.html Using brace to load Ace. Ace and jsonlint are now packed by default with JSONEditor. Removed all redundant build stuff for the assets. 2015-02-27 21:54:04 +01:00
largefile.json first commit 2012-04-21 13:28:28 +02:00
setup.js Provide Navigator and allow locale override in test environment setup 2019-03-04 16:09:52 -05:00
test_bootstrap.html Updated history and bootstrap test file 2016-04-11 21:42:38 +02:00
test_build.html Publish v5.26.2 2018-11-13 20:39:02 +01:00
test_build_min.html Implement color picker. Expose `VanillaPicker`, `ace`, and `Ajv`. 2018-08-22 12:10:15 +02:00
test_color_picker.html Fixed `onClose` of color picker not always being fired 2018-08-29 21:10:13 +02:00
test_destroy.html Added some test pages 2016-03-20 15:56:28 +01:00
test_large_array.html Some more fixes around #558 2018-08-02 10:43:12 +02:00
test_materialize.html Fixed #289: Some CSS breaking when using the editor in combination with materialize.css or bootstrap 2016-04-09 20:55:07 +02:00
test_minimalist_min.html Implement color picker. Expose `VanillaPicker`, `ace`, and `Ajv`. 2018-08-22 12:10:15 +02:00
test_schema.html Add examples to test_schema.html 2019-03-07 20:50:05 +01:00
test_update.html Impelemented `updateText` 2018-08-06 10:27:57 +02:00
util.test.js Fix JSON path parsing for array indices (#679) 2019-03-28 19:49:36 +01:00