Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debug karma.error is not a function #2254

Open
FredLoney opened this issue Jul 13, 2016 · 0 comments
Open

Debug karma.error is not a function #2254

FredLoney opened this issue Jul 13, 2016 · 0 comments

Comments

@FredLoney
Copy link

Expected behavior

When karma is run in debug and a karma adapter calls __karma__.error, the error message should be printed on the console.

Actual behavior

When karma is run in debug, debug.html defines the window.__karma__ object but does not include an error function. Then, when a karma adapter calls __karma__.error, the error message printed is karma.error is not a function which occludes the real error.

There is at least one occurrence reported in the wild.

Enviroment Details

  • Karma version (output of karma --version): 0.13.22
  • Relevant part of your karma.config.js file

frameworks: ['jspm', ...]

or other adapter which calls karma.error.

Steps to reproduce the behaviour

  1. Mock an adapter which alway calls window.karma.error with a message.
  2. Start karma on any test suite in debug.
  3. The intended error message is not printed on the console.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants