Skip to content

Commit

Permalink
Simplify testSelector() function (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
Turbo87 authored and marcoow committed Nov 23, 2016
1 parent 5214565 commit 6c110a2
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions test-support/helpers/ember-test-selectors.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,5 @@ const {
} = Ember;

export default function testSelector(key, value) {
let selector;
if (!isNone(value)) {
selector = `[data-test-${key}="${value}"]`;
} else {
selector = `[data-test-${key}]`;
}
return selector;
};
return isNone(value) ? `[data-test-${key}]` : `[data-test-${key}="${value}"]`;
}

0 comments on commit 6c110a2

Please sign in to comment.