loopback-connector-elastic-search
loopback-connector-elastic-search copied to clipboard
Test for findByIds fails
I've temporarily commented out the part of the test which fails.
The original test case was available at: https://github.com/strongloop/loopback-datasource-juggler/blob/master/test/basic-querying.test.js
I simply copied and repurposed it here: https://github.com/strongloop-community/loopback-connector-elastic-search/blob/master/test/02.basic-querying.test.js
In order to reproduce the problem:
- un-comment the following lines:
names.should.eql( // NOTE: order doesn't add up, is 2.ii.iii broken?
[createdUsers[2].name, createdUsers[1].name, createdUsers[0].name]);
-
comment-out the following lines:
names.should.include(createdUsers[2].name); names.should.include(createdUsers[1].name); names.should.include(createdUsers[0].name);