Skip to content

Commit

Permalink
Adding an empty string filters test
Browse files Browse the repository at this point in the history
  • Loading branch information
kobelb committed Aug 31, 2020
1 parent 205dd30 commit 195a5a1
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ const mockMappings = {

describe('Filter Utils', () => {
describe('#validateConvertFilterToKueryNode', () => {
test('Empty string filters are ignored', () => {
expect(validateConvertFilterToKueryNode(['foo'], '', mockMappings)).toBeUndefined();
});
test('Validate a simple KQL KueryNode filter', () => {
expect(
validateConvertFilterToKueryNode(
Expand Down

0 comments on commit 195a5a1

Please sign in to comment.