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 },