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

Tests running twice #9

Open
gregeinfrank opened this issue Sep 4, 2014 · 1 comment
Open

Tests running twice #9

gregeinfrank opened this issue Sep 4, 2014 · 1 comment

Comments

@gregeinfrank
Copy link

Hey thanks for the tutorial/demo!

I'm having an issue (I'm using grunt-karma) where when I open up the debug.html file, it's inserting this script tag:

<script type="text/javascript">
  window.__karma__.loaded();
</script>

but since I'm now calling window.karma.start when require finishes, the tests are running twice (first time before require loads, and the second time correctly). What should I do to prevent the double start()?

Thanks!

@gregeinfrank
Copy link
Author

BTW I did find a hack by putting this in the first line of test-main.js but it just doesn't feel right...

window.__karma__.loaded = function () {};

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant