Here's my set up on Ubuntu
- dalek and dalek-cli installed as instructed in the website, the version is displayed correctly
- phantomjs was installed via
npm install
but the phantomjs command could not be run - installed phantomjs via
apt-get
... now I have version 1.4 - in the folder
/var/www/first_tests/
I have the package.json file provided in the website along with a subfoldertests
containingfirst.js
with the google example provided
I am in my homedirectory since that's the only place I can call dalek (I'm guessing because that where I was when I installed it) so I'm doing
dalekjs /var/www/first_tests/tests/*.js
The console shows "Running tests" but nothing happens. Trying to run
phantomjs /var/www/first_tests/tests/first.js
gives me "undefined:0 ReferenceError: Can't find variable: module"