From d516cc69beb13f3ddf15a71dc67897c8c6a7385e Mon Sep 17 00:00:00 2001 From: Jordan Snow Date: Thu, 3 Oct 2024 13:19:35 -0400 Subject: [PATCH] More testing Signed-off-by: Jordan Snow --- .../catalog/src/alpha/filter/parseFilterExpression.test.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/catalog/src/alpha/filter/parseFilterExpression.test.ts b/plugins/catalog/src/alpha/filter/parseFilterExpression.test.ts index 647a4ef82454f..eda5def76ede6 100644 --- a/plugins/catalog/src/alpha/filter/parseFilterExpression.test.ts +++ b/plugins/catalog/src/alpha/filter/parseFilterExpression.test.ts @@ -146,6 +146,10 @@ describe('splitFilterExpression', () => { { key: 'kind', parameters: ['component', 'user'], negation: false }, { key: 'type', parameters: ['foo'], negation: true }, ]); + expect(run('not:type:foo kind:component,user')).toEqual([ + { key: 'type', parameters: ['foo'], negation: true }, + { key: 'kind', parameters: ['component', 'user'], negation: false }, + ]); expect(run('kind:component,user type:foo')).toEqual([ { key: 'kind', parameters: ['component', 'user'], negation: false }, { key: 'type', parameters: ['foo'], negation: false },