Skip to content

Commit

Permalink
add acceptance test for params-to-hash-pairs transform (#152)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoow committed Nov 2, 2017
1 parent c556478 commit fb30ded
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,7 @@ if (!config.stripTestSelectors) {
assert.equal(find('.test10').find('div[data-test]').length, 0, 'data-test does not exists');
});

test('it transforms data-test params to hash pairs on components', function(assert) {
assert.equal(find('.test11').find('div[data-test-something]').length, 1, 'data-test-something exists');
});
}
2 changes: 2 additions & 0 deletions tests/dummy/app/templates/bind-test.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,5 @@
<div class="test9">{{#data-test-component data-test-without-value}}foo{{/data-test-component}}</div>

<div class="test10">{{data-test-component data-test}}</div>

<div class="test11">{{data-test-component data-test-something some-prop="prop"}}</div>

0 comments on commit fb30ded

Please sign in to comment.