Skip to content

Commit bf98e3b

Browse files
committed
Update SpecHelper.js
1 parent 188eaff commit bf98e3b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/unit/SpecHelper.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@
66
/* some globals we might need later on, set in beforeEach */
77
var $rootScope, $compile, $injector, $httpBackend, $scope, $q, $controller;
88

9+
/**
10+
* Initiate the angular module we want to test on and initiate
11+
* global angular modules required for testing (like $rootScope etc.)
12+
*
13+
* @param {bool} [withModule] disable automatic module initiation (by default, the module is initiated automatically for you)
14+
*/
915
function initGlobals(withModule) {
1016
if (withModule !== false) {
1117
/* Initiate the main module */

0 commit comments

Comments
 (0)