import { setupTest } from 'ember-qunit'; module('route:application', function(hooks) { setupTest(hooks); test('perform the right query', function(assert) { let route = this.owner.lookup('route:application'); let result = route._queryString(); assert.equal(result, '?awesome=sauce'); }); });
= this.server.create('post', 'inSomeState'); await Ember.run(async function() { // Must be inside a Run Loop to use the store, abstraction feels really leaky this.set('post', this.store.find('post', post.id); }); await render(hbs` {{blog-post post=post}} `); // Perform some assertion, finally });