Skip to content
This repository was archived by the owner on May 26, 2019. It is now read-only.

Commit d9c55bf

Browse files
algo74toddjordan
authored andcommitted
Update model-hook.md (#2269)
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"
1 parent 53b8033 commit d9c55bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/tutorial/model-hook.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ import {
124124
```/tests/acceptance/list-rentals-test.js{+2,+3}
125125
test('should list available rentals.', async function(assert) {
126126
await visit('/');
127-
assert.equal(this.element.querySelectorAll('.results .listing').length, 3, 'should display 3 listings');
127+
assert.equal(this.element.querySelectorAll('.listing').length, 3, 'should display 3 listings');
128128
});
129129
```
130130

0 commit comments

Comments
 (0)