loopback-connector-elastic-search icon indicating copy to clipboard operation
loopback-connector-elastic-search copied to clipboard

Test for findByIds fails

Open pulkitsinghal opened this issue 9 years ago • 3 comments

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:

  1. 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]);
  1. comment-out the following lines:

    names.should.include(createdUsers[2].name);
    names.should.include(createdUsers[1].name);
    names.should.include(createdUsers[0].name);
    

pulkitsinghal avatar Apr 02 '15 15:04 pulkitsinghal