Skip to content

Commit

Permalink
update commons lib and add test
Browse files Browse the repository at this point in the history
  • Loading branch information
CrisTofani committed Mar 14, 2024
1 parent 4a0822d commit d6106e5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
},
"dependencies": {
"@azure/cosmos": "^4.0.0",
"@pagopa/data-indexer-commons": "^0.3.0",
"@pagopa/data-indexer-commons": "^0.3.1",
"@azure/data-tables": "^13.2.2",
"@azure/storage-blob": "^12.17.0",
"@elastic/elasticsearch": "^8.12.0",
Expand Down
4 changes: 4 additions & 0 deletions src/filtering/__test__/filter.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ describe("filter", () => {
const res = filterDynamic("bar", "eq", "undef")(inputData);
expect(E.isLeft(res)).toBeTruthy();
});
it("should return left for dynamicCompare on wrong Filter Definition (isNull)", () => {
const res = filterDynamic("bar", "isNull", "undef")(inputData);
expect(E.isLeft(res)).toBeTruthy();
});
it("should return E.right(false) for dynamicCompare on identity compare for 'gt' compare", () => {
const res = filterDynamic("bar", "gt", "bar")(inputData);
expect(res).toEqual(E.right(false));
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1393,10 +1393,10 @@
danger-plugin-yarn "^1.2.1"
pivotaljs "^1.0.3"

"@pagopa/data-indexer-commons@^0.3.0":
version "0.3.0"
resolved "https://registry.yarnpkg.com/@pagopa/data-indexer-commons/-/data-indexer-commons-0.3.0.tgz#c75850bd8dda703b8fbdf3d658c5042094e8bf3e"
integrity sha512-hKJLm8LBN3B1AtQyIPlcTDfVgpTu/oAKM22ryloM9VxYLcgh4h8mO0ZLxNDGoP9nhyXNkKlk6rh9dzjKMqBzOA==
"@pagopa/data-indexer-commons@^0.3.1":
version "0.3.1"
resolved "https://registry.yarnpkg.com/@pagopa/data-indexer-commons/-/data-indexer-commons-0.3.1.tgz#6236ad64ea762d0475faa631ea83419e41731d08"
integrity sha512-a4tf+xKvXdwKRR2SCSKHkZmy7gbXWUsZ2vExaP15AEokZN8ht5W4o88+W5As8wfJD6MEYZAg036x/0s1BbCc7A==
dependencies:
"@pagopa/ts-commons" "^12.4.1"
fp-ts "^2.16.1"
Expand Down

0 comments on commit d6106e5

Please sign in to comment.