Closed j0hnsmith closed 10 years ago
I'm trying to test an angular app with mocha, from the docs it seems that this should work
var angular = require('angular'); describe('myApp', function() { beforeEach(angular.mock.module('myApp')); });
I'm getting Cannot call method 'module' of undefined
Cannot call method 'module' of undefined
ngMock is a separate module that you have to load. https://docs.angularjs.org/api/ngMock
I'm trying to test an angular app with mocha, from the docs it seems that this should work
I'm getting
Cannot call method 'module' of undefined