Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike North committed Jul 31, 2015
1 parent d348c86 commit a9dae19
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions tests/unit/mixins/route-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ test('it works', assert => {

test('it can not use infinityModel without Ember Data Store', assert => {
var RouteObject = Ember.Route.extend(RouteMixin, {
store: null,
model() {
return this.infinityModel('post');
}
Expand Down Expand Up @@ -73,7 +74,7 @@ test('it sets state before it reaches the end', assert => {
}
};

route.store = dummyStore;
route.set('store', dummyStore);

var model;
Ember.run(() => {
Expand Down Expand Up @@ -110,7 +111,7 @@ test('it allows customizations of request params', assert => {
}
};

route.store = dummyStore;
route.set('store', dummyStore);

var model;
Ember.run(() => {
Expand Down Expand Up @@ -142,7 +143,7 @@ test('it allows customizations of meta parsing params', assert => {
}
};

route.store = dummyStore;
route.set('store', dummyStore);

var model;
Ember.run(() => {
Expand Down Expand Up @@ -176,7 +177,7 @@ test('it sets state when it reaches the end', assert => {
}
};

route.store = dummyStore;
route.set('store', dummyStore);

var model;
Ember.run(() => {
Expand Down Expand Up @@ -218,7 +219,7 @@ test('it uses extra params when loading more data', assert => {
}
};

route.store = dummyStore;
route.set('store', dummyStore);

var model;
Ember.run(() => {
Expand Down Expand Up @@ -280,7 +281,7 @@ test('it uses overridden params when loading more data', assert => {
}
};

route.store = dummyStore;
route.set('store', dummyStore);

var model;
Ember.run(() => {
Expand Down Expand Up @@ -338,7 +339,7 @@ test('it uses bound params when loading more data', assert => {
}
};

route.store = dummyStore;
route.set('store', dummyStore);

var model;
Ember.run(() => {
Expand Down Expand Up @@ -401,7 +402,7 @@ test('it allows overrides/manual invocations of updateInfinityModel', assert =>
}
};

route.store = dummyStore;
route.set('store', dummyStore);

var model;
Ember.run(() => {
Expand Down

0 comments on commit a9dae19

Please sign in to comment.