Skip to content

Commit

Permalink
bindDataTestAttributes: Avoid duplicated in attributeBindings
Browse files Browse the repository at this point in the history
  • Loading branch information
Turbo87 committed May 14, 2021
1 parent 46fcd51 commit 240bc5d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion addon/utils/bind-data-test-attributes.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ export default function bindDataTestAttributes(component) {
}

for (let prop of dataTestProperties) {
attributeBindings.push(prop);
if (attributeBindings.indexOf(prop) === -1) {
attributeBindings.push(prop);
}
}

try {
Expand Down

0 comments on commit 240bc5d

Please sign in to comment.