Skip to content

Commit

Permalink
additional test of IN (#6226)
Browse files Browse the repository at this point in the history
  • Loading branch information
kneth authored Jun 18, 2024
1 parent 8a89928 commit 747d7e2
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions integration-tests/tests/src/tests/queries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1061,7 +1061,11 @@ describe("Queries", () => {
expect(bobs.length).to.equal(1);

const many = persons.filtered("name in $0", ["Alice", "Dennis", "Bob"]);
expect(many.length).to.equal(2);
expect(many.length).equal(2);

expect(() => persons.filtered("$0 IN name", ["Alice", "Bob"])).throw(
"The keypath following 'IN' must contain a list. Found 'name'",
);
});

it("array of primitive types", () => {
Expand Down Expand Up @@ -1234,7 +1238,7 @@ describe("Queries", () => {
expect(primitives.filtered("s == $0 OR i == $1", unicornString, 3).length).to.equal(1);
});

it("primititive types - AND operator", () => {
it("primitive types - AND operator", () => {
const unicornString = "Here is a Unicorn 🦄 today";
const fooString = "foo";

Expand Down

0 comments on commit 747d7e2

Please sign in to comment.