loopback-datasource-juggler/test
Heath Morrison 2377792c22 Coerce array-like objects into arrays
The query-string parser used by express
https://github.com/ljharb/qs#parsing-arrays
limits the size of arrays that are created from query strings to 20
items. Arrays larger than that are converted to objects using numeric
indices.

This commit fixes the coercion algorithm used by queries to
treat number-indexed objects as arrays. We still maintain a strict
understanding of an "array-like object" to limit the opportunity for
subtle bugs. In particular, the presence of non-index keys is an
indication that the object was not intended to be interpreted as
an array.
2017-01-10 14:46:41 +01:00
..
helpers test/kvao: add connectorCapabilities options 2016-10-19 11:06:17 +02:00
kvao Refactor flush to deleteAll 2017-01-09 14:53:34 -08:00
operation-hooks.suite Upgrade eslint-config to 7.x 2017-01-06 13:33:54 +01:00
CustomTypeForeignKey.test.js Fix manually 2016-08-22 19:20:12 -04:00
allow-extended-operators.test.js Honour allowExtendedOperators in "DAO.find" 2016-12-06 10:28:40 +01:00
async-observer.test.js Fix manually 2016-08-22 19:20:12 -04:00
basic-querying.test.js Fix block padding 2016-12-13 16:05:50 -08:00
common.batch.js Fix manually 2016-08-22 19:20:12 -04:00
common_test.js Upgrade eslint-config to 7.x 2017-01-06 13:33:54 +01:00
crud-with-options.test.js Fix block padding 2016-12-13 16:05:50 -08:00
datasource.test.js Fix manually 2016-08-22 19:20:12 -04:00
datatype.test.js Fix block padding 2016-12-13 16:05:50 -08:00
default-scope.test.js Fix block padding 2016-12-13 16:05:50 -08:00
defaults.test.js Fix block padding 2016-12-13 16:05:50 -08:00
discovery.test.js Fix eslint errors reported by the latest eslint 2016-12-20 17:37:54 +01:00
geo.test.js Upgrade eslint-config to 7.x 2017-01-06 13:33:54 +01:00
hooks.test.js Fix block padding 2016-12-13 16:05:50 -08:00
include.test.js Upgrade eslint-config to 7.x 2017-01-06 13:33:54 +01:00
include_util.test.js Fix manually 2016-08-22 19:20:12 -04:00
init.js Add ilike and nilike operators 2016-10-12 18:31:31 -06:00
introspection.test.js Fix block padding 2016-12-13 16:05:50 -08:00
json.test.js Upgrade eslint & config to latest 2016-12-05 15:14:09 +01:00
kv-memory.js Refactor flush to deleteAll 2017-01-09 14:53:34 -08:00
kvao.suite.js test/kvao: add connectorCapabilities options 2016-10-19 11:06:17 +02:00
loopback-data.test.js Fix manually 2016-08-22 19:20:12 -04:00
loopback-dl.test.js Coerce array-like objects into arrays 2017-01-10 14:46:41 +01:00
manipulation.test.js Upgrade eslint-config to 7.x 2017-01-06 13:33:54 +01:00
memory.test.js Fix block padding 2016-12-13 16:05:50 -08:00
mixins.test.js Fix block padding 2016-12-13 16:05:50 -08:00
mock-connectors.js Fix manually 2016-08-22 19:20:12 -04:00
model-definition.test.js Fix block padding 2016-12-13 16:05:50 -08:00
optional-validation.test.js Fix block padding 2016-12-13 16:05:50 -08:00
performance.coffee Reformat the code 2014-01-24 09:09:53 -08:00
persistence-hooks.suite.js Fix block padding 2016-12-13 16:05:50 -08:00
relations.test.js Upgrade eslint-config to 7.x 2017-01-06 13:33:54 +01:00
schema.test.js Fix block padding 2016-12-13 16:05:50 -08:00
scope.test.js Fix block padding 2016-12-13 16:05:50 -08:00
spec_helper.js Fix manually 2016-08-22 19:20:12 -04:00
test1-schemas.json Reformat the code 2014-01-24 09:09:53 -08:00
test2-schemas.json Reformat the code 2014-01-24 09:09:53 -08:00
transient.test.js Fix block padding 2016-12-13 16:05:50 -08:00
util.test.js Upgrade eslint-config to 7.x 2017-01-06 13:33:54 +01:00
validations.test.js Fix block padding 2016-12-13 16:05:50 -08:00