Skip to content
This repository has been archived by the owner on Apr 23, 2024. It is now read-only.
/ js-client Public archive

Commit

Permalink
Revert changes to only apply to the backend alpha
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasPaganini committed Jun 15, 2022
1 parent 05aa20b commit 2e053c6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/functions/searches/modify-one-query.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ describe('modifyOneQuery()', () => {
expect(newQuery).withContext(`Expect new query to be different than initial one`).not.toBe(query);
expect(newQuery)
.withContext(`Expect new query to contain the applied filter`)
.toBe(`tag=${tag} json value.foo == "50" as "foo" | table`);
.toBe(`tag=${tag} json "value.foo" == "50" as "foo" | table`);
}),
);

Expand All @@ -112,7 +112,7 @@ describe('modifyOneQuery()', () => {
};
await expectAsync(modifyOneQuery(query, [filter]))
.withContext(`Expect invalid filter to cause an error`)
.toBeRejectedWithError(Error, 'netflow (module idx 0) error: Malformed IPv4 Address');
.toBeRejectedWithError(Error, 'netflow (module idx 0) error: Malformed IPv6 Address');
}),
);
});
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ describe('subscribeToOneExplorerSearch()', () => {
const elementFilters: Array<ElementFilter> = [
{ path: 'value.foo', operation: '!=', value: '50', tag, module: 'json', arguments: null },
];
const query = `tag=${tag} json value.foo != "50" as "foo" | raw`;
const query = `tag=${tag} json "value.foo" != "50" as "foo" | raw`;
const countAfterFilter = count - 1;

const filter: SearchFilter = {
Expand Down

0 comments on commit 2e053c6

Please sign in to comment.