Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: Fix test failures triggered with --no-babel
When we run ./test.py --no-babel, Babel is not used to transpile the tests. (This restricts test runs to modern browsers and prevents testing on, say, IE11.) But Babel seems to have masked some issues with constructor spies. Jasmine will call your fake callback with "new" if the spy itself is called with "new", but this means that constructor spies must have plain function callbacks, not arrow functions. Change-Id: I936b024504c4173cc29824408e97e5c7d6c591d8
- Loading branch information