Add two basic tests for "inq" operator
This commit is contained in:
parent
5a7283386c
commit
b5d03b845f
|
@ -464,6 +464,23 @@ describe('basic-querying', function() {
|
|||
});
|
||||
});
|
||||
|
||||
it('supports non-empty inq', function() {
|
||||
// note there is no record with seq=100
|
||||
return User.find({where: {seq: {inq: [0, 1, 100]}}})
|
||||
.then(result => {
|
||||
const seqsFound = result.map(r => r.seq);
|
||||
should(seqsFound).eql([0, 1]);
|
||||
});
|
||||
});
|
||||
|
||||
it('supports empty inq', function() {
|
||||
return User.find({where: {seq: {inq: []}}})
|
||||
.then(result => {
|
||||
const seqsFound = result.map(r => r.seq);
|
||||
should(seqsFound).eql([]);
|
||||
});
|
||||
});
|
||||
|
||||
var itWhenIlikeSupported = connectorCapabilities.ilike ? it : it.skip.bind(it);
|
||||
|
||||
itWhenIlikeSupported('should support "like" that is satisfied', function(done) {
|
||||
|
|
Loading…
Reference in New Issue