Skip to content

Commit

Permalink
don't use jQuery
Browse files Browse the repository at this point in the history
  • Loading branch information
NullVoxPopuli committed Jun 5, 2019
1 parent e91a753 commit 5105a48
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions packages/ember/tests/routing/route_controller_integration_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ if (EMBER_METAL_TRACKED_PROPERTIES && EMBER_NATIVE_DECORATOR_SUPPORT) {

class HomeRoute extends Route {
async model({ id }) {
return { value: id, staticValue: 'whatever' };
return { value: id };
}
}

Expand All @@ -34,10 +34,18 @@ if (EMBER_METAL_TRACKED_PROPERTIES && EMBER_NATIVE_DECORATOR_SUPPORT) {
this.addTemplate('home', '<h3 class="derivedProperty">{{this.derivedProperty}}</h3>');

await this.visit('/home/2');
assert.equal(this.$('h3').text(), '2', 'the derived property matches the id');
assert.equal(
document.querySelector('h3').innerText,
'2',
'the derived property matches the id'
);

await this.visit('/home/3');
assert.equal(this.$('h3').text(), '3', 'the derived property matches the id');
assert.equal(
document.querySelector('h3').innerText,
'3',
'the derived property matches the id'
);
}
}
);
Expand Down

0 comments on commit 5105a48

Please sign in to comment.