Skip to content

Commit

Permalink
Update model-hook.md (emberjs#2269)
Browse files Browse the repository at this point in the history
Test fails if     
assert.equal(this.element.querySelectorAll('.results .listing').length, 3, 'should display 3 listings');
because listings are not in an element with class "results"
  • Loading branch information
algo74 authored and toddjordan committed Mar 12, 2018
1 parent 53b8033 commit d9c55bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/tutorial/model-hook.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ import {
```/tests/acceptance/list-rentals-test.js{+2,+3}
test('should list available rentals.', async function(assert) {
await visit('/');
assert.equal(this.element.querySelectorAll('.results .listing').length, 3, 'should display 3 listings');
assert.equal(this.element.querySelectorAll('.listing').length, 3, 'should display 3 listings');
});
```

Expand Down

0 comments on commit d9c55bf

Please sign in to comment.