johnpapa / generator-hottowel

Yo generator that creates an Angular app via HotTowel
835 stars 230 forks source link

Phantomjs test #192

Open redparham opened 8 years ago

redparham commented 8 years ago

Issue details

The project integrates phantomjs but there isn't a functional test (similar to how there are unit tests for the controllers, for example). Would it be possible to include a simple phantomjs test that exercises a couple pages?

I tried (not a javascript veteran) but simply dropping in a phantomjs example results in an error:

ReferenceError: Can't find variable: require

This is the offending line: var page = require('webpage').create();

Please provide some guidance... thank you.