nathanboktae / mocha-phantomjs

:coffee: :ghost: Run client-side mocha tests in the command line through phantomjs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

mocha-phantomjs Error loading resource file

bmark1111 opened this issue · comments

I get this error when running mocha-phantomjs v1.html

Error loading resource file://api.inflightpanasonic.aero/inflight/static/airport_info/v1.js?dev (302). Details: Request for opening non-local file file://api.inflightpanasonic.aero/inflight/static/airport_info/v1.js?dev

This is my v1.html runner:

<title>Airport Info Tests</title>

Airport Info Tests

<script src="vendor/mocha.js"></script> <script src="vendor/chai.js"></script> <script type="text/javascript" src="http://api.inflightpanasonic.aero/inflight.js"></script> <script> mocha.ui('bdd'); mocha.reporter('html'); expect = chai.expect; </script> <script src="v1.js"></script> <script> if (window.mochaPhantomJS) { mochaPhantomJS.run(); } else { mocha.run(); } </script>

I am assuming that phantomjs has a problem with my external file. Tried looking for ways to handle this to no avail. Any help appreciated