mirror of
https://github.com/knex/knex.git
synced 2025-09-26 00:24:19 +00:00
more comprehensive case insensitive operator test
This commit is contained in:
parent
bf4e39718e
commit
8511171b00
@ -237,8 +237,8 @@ describe('Builder', function () {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it('should allow case insensitive operators', function() {
|
it('should allow case insensitive operators', function() {
|
||||||
var query = builder.where('foo', 'LIKE', 'bar');
|
var query = builder.where('foo', 'like', 'bar').where('foo', 'LIKE', 'bar');
|
||||||
expect(query.toString()).to.equal("select * where `foo` LIKE 'bar'");
|
expect(query.toString()).to.equal("select * where `foo` like 'bar' and `foo` LIKE 'bar'");
|
||||||
});
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user