loopback-datasource-juggler/test
Peter Bouda 6bd9fca080 Fix bug in utils uniq function (#1526)
The uniq function does currently not work when the database is mongodb.
In the case of mongodb, the function will receive an array of bson
object of bson type ObjectID. The indexOf function will return a
different index, even if the mongodb ID is the same, as it is wrapped
in the ObjectID. This commit first transforms any ObjectID in the array
to a string representation. We can then use indexOf to check for
uniqueness.
2017-12-04 15:39:58 -05:00
..
fixtures/loopback-connector-throwing Fix datasource to report connector-loading errors 2017-02-03 20:29:11 +01:00
helpers test/helpers: annotate skipped tests 2017-06-07 14:05:48 -04:00
kvao Add missing return for KVAO delete all 2017-01-13 00:19:10 -08:00
operation-hooks.suite Upgrade eslint-config, fix new violations 2017-02-01 12:45:56 +01:00
CustomTypeForeignKey.test.js Fix manually 2016-08-22 19:20:12 -04:00
allow-extended-operators.test.js Refactor logic of options.allowExtendedOperators 2017-01-30 00:05:56 +01:00
async-observer.test.js Fix manually 2016-08-22 19:20:12 -04:00
basic-querying.test.js Run juggler tests for Cloudant (#1414) 2017-07-11 14:56:39 -04: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 datasource to report connector-loading errors 2017-02-03 20:29:11 +01:00
datatype.test.js Fix basic-querying (#1509) 2017-10-16 16:07:01 -04:00
date-string.test.js Add DateString type 2017-05-01 12:28:59 -04:00
default-scope.test.js override collection name for arangodb (#1243) 2017-03-20 09:01:16 -04: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
exclude-base-props.test.js fix assert, make the test case more clear 2017-05-12 11:47:50 -07:00
geo.test.js handle deep geo-near queries (#1314) 2017-04-13 17:05:05 -04:00
hooks.test.js Fix block padding 2016-12-13 16:05:50 -08:00
include.test.js Run juggler tests for Cloudant (#1414) 2017-07-11 14:56:39 -04:00
include_util.test.js Fix manually 2016-08-22 19:20:12 -04:00
init.js Add test case for all connectors 2017-02-14 14:01:44 -05: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 Flag id as updateOnly when forceId is in effect (#1453) 2017-08-22 13:09:45 -07:00
manipulation.test.js Catch err using Callback 2017-08-16 17:00:41 -04:00
memory.test.js Use dataSource.connect to avoid duplicate connects 2017-04-04 10:19:58 -07: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 configurable model merge 2017-05-10 02:33:45 +02:00
model-inheritance.test.js Flag id as updateOnly when forceId is in effect (#1453) 2017-08-22 13:09:45 -07:00
normalize-undefined.test.js Fix undefined properties in where 2017-08-03 14:09:21 -04:00
optional-validation.test.js Fix id update error message formatting 2017-02-15 18:26:32 +01:00
performance.coffee Reformat the code 2014-01-24 09:09:53 -08:00
persistence-hooks.suite.js use connector flag throughout tests 2017-07-26 16:18:30 -04:00
relations.test.js Fix query for related models (#1522) 2017-11-14 14:22:48 -05: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
transaction.test.js Add a better way to handle transactions 2017-09-06 07:10:57 +02:00
transient.test.js Fix block padding 2016-12-13 16:05:50 -08:00
util.test.js Fix bug in utils uniq function (#1526) 2017-12-04 15:39:58 -05:00
validations.test.js validations: use new regex per evaluation (#1479) 2017-09-01 12:48:29 -04:00