SIGN IN SIGN UP
angular / angular.js UNCLAIMED

AngularJS - HTML enhanced for web apps!

0 0 0 JavaScript

test(*): fix tests for Safari 10+

The mocksSpec change is due to the following issue in Safari 10+ strict mode:
In the following code, Safari will not use the name of the enclosing function (testCaller)
in the stack, but rather list the anonymous function that is called to inject:

```
function testCaller() {
  return inject(function() {
    throw new Error();
  });
}
var throwErrorFromInjectCallback = testCaller();
```

Naming the anonymous function allows us to check for it in the test.
M
Martin Staffa committed
9204a1a1537c886d0946f6e8223c209244ae6b5b
Parent: f4d49f3
Committed by Martin Staffa <mjstaffa@googlemail.com> on 1/17/2018, 3:05:07 PM