Skip to content

Commit

Permalink
Only run tests in real browsers
Browse files Browse the repository at this point in the history
Fixes #31.
  • Loading branch information
kevva committed Jun 16, 2015
1 parent 5f3fce6 commit bdf2b88
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion generators/app/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@
<!-- include source files here... -->
<!-- include spec files here... -->
<script src="spec/test.js"></script>
<script>mocha.run();</script><% } %>
<script>
if (navigator.userAgent.indexOf('PhantomJS') === -1) {
mocha.run();
}
</script><% } %>
</body>
</html>

0 comments on commit bdf2b88

Please sign in to comment.