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
Post a Comment