Skip to content

Commit

Permalink
Get rid of spread to fix node 4 (jestjs#3238)
Browse files Browse the repository at this point in the history
* Get rid of spread to fix node 4

* Use apply
  • Loading branch information
thymikee authored and aaronabramov committed Mar 31, 2017
1 parent 40efbaa commit 3f4b667
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/jest-jasmine2/src/queueRunner.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ function queueRunner(options: Options) {
const mapper = ({fn, timeout}) => {
const promise = new Promise(resolve => {
const next = once(resolve);
next.fail = (...args) => {
options.fail(...args);
next.fail = () => {
options.fail.apply(null, arguments);
resolve();
};
try {
Expand Down

0 comments on commit 3f4b667

Please sign in to comment.