diff --git a/__tests__/src/rules/no-static-element-interactions-test.js b/__tests__/src/rules/no-static-element-interactions-test.js index fa170565..ad82bcaf 100644 --- a/__tests__/src/rules/no-static-element-interactions-test.js +++ b/__tests__/src/rules/no-static-element-interactions-test.js @@ -34,6 +34,24 @@ const componentsSettings = { components: { Button: 'button', TestComponent: 'div', + // Custom component with mapped attributes + Link: { + component: 'a', + attributes: { + href: ['to', 'href', 'foo'], + }, + }, + // Custom component with a redundant attribute + TestComponent2: { + attributes: { + href: ['href'], + }, + component: 'a', + }, + // Custom component with empty attributes object + TestComponent3: { + component: 'a', + }, }, }, }; @@ -82,6 +100,10 @@ const alwaysValid = [ { code: '