gulp - TypeError: module is not a function AngularJS & Jasmine and protractor -


i have following in app.js

require('angular'); var http = require('http'); var filldropdownscontroller = require('./js/controllers'); var getdropdownsservice = require('./js/services'); angular.module('app', ['filldropdownscontroller', 'getdropdownsservice']); 

my ng-app on html tag. using gulp-protractor write unit tests.

in test file, have mentioned following:

beforeeach(function(){     module('app'); }); 

but keeps on giving error follow when run gulp command:

message:     failed: module not function   stack:     typeerror: module not function 

any idea wrong here?

thanks!


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -