Skip to content

Commit

Permalink
Fix group by test
Browse files Browse the repository at this point in the history
  • Loading branch information
Marten Schilstra committed Jan 28, 2017
1 parent 53a1715 commit a5e941d
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions tests/integration/helpers/group-by-test.js
Expand Up @@ -47,22 +47,3 @@ test('It watches for changes', function(assert) {

assert.equal(this.$().text().trim(), 'aabbccd', 'aabbccd is the right order');
});

test('It groups by properties that contain punctuation', function(assert) {
this.set('array', emberArray([
{ category: 'a, inc.', name: 'a' },
{ category: 'b, co.', name: 'b' },
{ category: 'c. l.l.p.', name: 'c' },
{ category: 'd & co.', name: 'd' }
]));

this.render(hbs`
{{~#each-in (group-by 'category' array) as |category entries|~}}
{{~category~}}
{{~#each entries as |entry|~}}{{~entry.name~}}{{~/each~}}
{{~/each-in~}}
`);

assert.equal(this.$().text().trim(), 'a, inc.ab, co.bc. l.l.p.cd & co.d', 'a, inc.ab, co.bc. l.l.p.cd & co.d is the right output');
});

0 comments on commit a5e941d

Please sign in to comment.