Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 0898b12

Browse files
test($logSpec): don't pollute the global namespace with helpers
1 parent 8dc09e6 commit 0898b12

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

test/ng/logSpec.js

+7-6
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
11
/* global $LogProvider: false */
22
'use strict';
33

4-
function initService(debugEnabled) {
5-
return module(function($logProvider) {
6-
$logProvider.debugEnabled(debugEnabled);
7-
});
8-
}
9-
104
describe('$log', function() {
115
var $window, logger, log, warn, info, error, debug;
126

@@ -178,4 +172,11 @@ describe('$log', function() {
178172
expect(errorArgs).toEqual(['abc', 'message\nsourceURL:123']);
179173
});
180174
});
175+
176+
function initService(debugEnabled) {
177+
return module(function($logProvider) {
178+
$logProvider.debugEnabled(debugEnabled);
179+
});
180+
}
181+
181182
});

0 commit comments

Comments
 (0)