Skip to content

Commit

Permalink
fix tests for 1.13
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanpenner committed Oct 19, 2016
1 parent 8fdf8db commit fb3a66f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default RecordArray.extend({
init() {
this._super(...arguments);

this.filterFunction = this.filterFunction || null;
this.set('filterFunction', this.get('filterFunction') || null);
this.isLoaded = true;
},
/**
Expand Down
2 changes: 1 addition & 1 deletion addon/-private/system/record-arrays/record-array.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export default Ember.ArrayProxy.extend(Ember.Evented, {
@private
@type Ember.Array
*/
this.content = this.content || null;
this.set('content', this.content || null);

/**
The flag to signal a `RecordArray` is finished loading data.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ test('default initial state', function(assert) {
});

test('custom initial state', function(assert) {
let content = [];
let content = Ember.A([]);
let store = {};
let recordArray = AdapterPopulatedRecordArray.create({
type: 'apple',
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/record-arrays/filtered-record-array-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ test('default initial state', function(assert) {
});

test('custom initial state', function(assert) {
let content = [];
let content = Ember.A();
let store = {};
let filterFunction = () => true;
let recordArray = FilteredRecordArray.create({
Expand Down

0 comments on commit fb3a66f

Please sign in to comment.