Skip to content

Commit

Permalink
Remove Array.prototype.from in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Ford committed Mar 8, 2016
1 parent 1624a85 commit 5cd1db6
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tests/test-server.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,13 @@ export class PageRequest {
}

resolve() {
let records = Array.from(new Array(this.size), (_, i)=> {
return {
let records = [];
for(let i = 0; i < this.size; i++){
records.push({
id: i,
name: `Record ${this.offset * this.size + i}`
};
});
});
}
this._resolve(records);
return this;
}
Expand Down

0 comments on commit 5cd1db6

Please sign in to comment.