Skip to content

Commit

Permalink
fix: improper bindings of arguments (thymikee#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
JLHwung authored and thymikee committed Dec 10, 2018
1 parent 3c8aa04 commit 4466073
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const ambientZone = Zone.current;
// inside of a `describe` but outside of a `beforeEach` or `it`.
const syncZone = ambientZone.fork(new SyncTestZoneSpec('jest.describe'));
function wrapDescribeInZone(describeBody) {
return () => syncZone.run(describeBody, null, arguments);
return function () { return syncZone.run(describeBody, null, arguments); }
}

// Create a proxy zone in which to run `test` blocks so that the tests function
Expand Down

0 comments on commit 4466073

Please sign in to comment.