loopback-datasource-juggler/test
Heath Morrison c62ba21307 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 15:11:20 +01:00
..
helpers Fix manually 2016-10-19 17:35:26 -04:00
kvao Auto-update by eslint --fix 2016-10-19 17:04:05 -04:00
operation-hooks.suite Fix manually 2016-10-19 17:35:26 -04:00
CustomTypeForeignKey.test.js Fix manually 2016-10-19 17:35:26 -04:00
async-observer.test.js Fix manually 2016-10-19 17:35:26 -04:00
basic-querying.test.js Fix manually 2016-10-19 17:35:26 -04:00
common.batch.js Fix manually 2016-10-19 17:35:26 -04:00
common_test.js Fix manually 2016-10-19 17:35:26 -04:00
crud-with-options.test.js Fix manually 2016-10-19 17:35:26 -04:00
datasource.test.js Fix manually 2016-10-19 17:35:26 -04:00
datatype.test.js Fix manually 2016-10-19 17:35:26 -04:00
default-scope.test.js Fix manually 2016-10-19 17:35:26 -04:00
defaults.test.js Fix manually 2016-10-19 17:35:26 -04:00
discovery.test.js Fix manually 2016-10-19 17:35:26 -04:00
events.js Fix manually 2016-10-19 17:35:26 -04:00
geo.test.js Fix manually 2016-10-19 17:35:26 -04:00
hooks.test.js Fix manually 2016-10-19 17:35:26 -04:00
include.test.js Fix manually 2016-10-19 17:35:26 -04:00
include_util.test.js Fix manually 2016-10-19 17:35:26 -04:00
init.js Fix manually 2016-10-19 17:35:26 -04:00
introspection.test.js Fix manually 2016-10-19 17:35:26 -04:00
json.test.js Fix manually 2016-10-19 17:35:26 -04:00
kv-memory.js Fix manually 2016-10-19 17:35:26 -04:00
kvao.suite.js test/kvao: add connectorCapabilities options 2016-10-19 12:33:21 +02:00
loopback-data.test.js Fix manually 2016-10-19 17:35:26 -04:00
loopback-dl.test.js Coerce array-like objects into arrays 2017-01-10 15:11:20 +01:00
manipulation.test.js Back-port fixes for linter errors from master 2016-12-06 10:47:27 +01:00
memory.test.js Fix manually 2016-10-19 17:35:26 -04:00
mixins.test.js Fix manually 2016-10-19 17:35:26 -04:00
model-definition.test.js Fix manually 2016-10-19 17:35:26 -04:00
optional-validation.test.js Fix manually 2016-10-19 17:35:26 -04:00
performance.coffee Reformat the code 2014-01-24 09:09:53 -08:00
persistence-hooks.suite.js Back-port fixes for linter errors from master 2016-12-06 10:47:27 +01:00
relations.test.js Throw error when model relation name is trigger 2017-01-03 10:41:07 +01:00
schema.test.js Fix manually 2016-10-19 17:35:26 -04:00
scope.test.js Fix manually 2016-10-19 17:35:26 -04:00
spec_helper.js Fix manually 2016-10-19 17:35:26 -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 manually 2016-10-19 17:35:26 -04:00
util.test.js Fix manually 2016-10-19 17:35:26 -04:00
validations.test.js Fix manually 2016-10-19 17:35:26 -04:00