Skip to content

Commit

Permalink
Fix invalid _super call.
Browse files Browse the repository at this point in the history
This was previously passing, because Ember 2.0.0 and lower did not
properly rethrow the error in all circumstances.
  • Loading branch information
rwjblue committed Aug 17, 2015
1 parent 64ccbc3 commit b6498c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/ember-data/tests/unit/many-array-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,13 @@ test("manyArray trigger arrayContentChange functions with the correct values", f
willChangeStartIdx = startIdx;
willChangeRemoveAmt = removeAmt;
willChangeAddAmt = addAmt;
return this._super.apply(arguments);
return this._super.apply(this, arguments);
},
arrayContentDidChange: function(startIdx, removeAmt, addAmt) {
equal(startIdx, willChangeStartIdx, 'WillChange and DidChange startIdx should match');
equal(removeAmt, willChangeRemoveAmt, 'WillChange and DidChange removeAmt should match');
equal(addAmt, willChangeAddAmt, 'WillChange and DidChange addAmt should match');
return this._super.apply(arguments);
return this._super.apply(this, arguments);
}
});
run(function() {
Expand Down

0 comments on commit b6498c4

Please sign in to comment.