fixed tests
This commit is contained in:
@@ -82,12 +82,12 @@ describe("$filter", () => {
|
||||
|
||||
it("should support indexof", () => {
|
||||
expect (OData(`Foo?$filter= indexof(name,'x') eq 11`))
|
||||
.to.eql (CQL(`SELECT from Foo where locate(name,'x') = 12`))
|
||||
.to.eql (CQL(`SELECT from Foo where locate(name,'x') = 11`))
|
||||
});
|
||||
|
||||
it("should support substring", () => {
|
||||
expect (OData(`Foo?$filter= substring(name,1) eq 'foo'`))
|
||||
.to.eql (CQL(`SELECT from Foo where substring(name,2) = 'foo'`))
|
||||
.to.eql (CQL(`SELECT from Foo where substring(name,1) = 'foo'`))
|
||||
});
|
||||
|
||||
it.each(['tolower','toupper','trim'])("should support '%s'", (fn) => {
|
||||
|
||||
Reference in New Issue
Block a user