We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 37e4075 commit bf82c38Copy full SHA for bf82c38
app/routes/index.js
@@ -0,0 +1,11 @@
1
+import Ember from 'ember';
2
+
3
+export default Ember.Route.extend({
4
+ model: function() {
5
+ return this.store.query('group', {
6
+ 'filter[id]': 1
7
+ }).then((groups) => {
8
+ return groups.objectAt(0);
9
+ });
10
+ }
11
+});
tests/unit/routes/index-test.js
+import { moduleFor, test } from 'ember-qunit';
+moduleFor('route:index', 'Unit | Route | index', {
+ // Specify the other units that are required for this test.
+ // needs: ['controller:foo']
+test('it exists', function(assert) {
+ let route = this.subject();
+ assert.ok(route);
0 commit comments