aboutsummaryrefslogtreecommitdiffstats
path: root/test/service
diff options
context:
space:
mode:
authorVojta Jina2011-11-11 17:15:22 -0800
committerMisko Hevery2011-11-14 20:31:19 -0800
commitacbd7cdf320f0570fcc1952c8680d4c78bc8fa2c (patch)
tree2483609ada03b9e6ff477596f0402dc24fdd7518 /test/service
parent035c7510763a9742294d51ba55aea0b6dd08ea58 (diff)
downloadangular.js-acbd7cdf320f0570fcc1952c8680d4c78bc8fa2c.tar.bz2
style(docs): make jslint happy - fix some warnings
Diffstat (limited to 'test/service')
-rw-r--r--test/service/cookiesSpec.js2
-rw-r--r--test/service/filter/filtersSpec.js8
-rw-r--r--test/service/logSpec.js2
-rw-r--r--test/service/scopeSpec.js10
4 files changed, 11 insertions, 11 deletions
diff --git a/test/service/cookiesSpec.js b/test/service/cookiesSpec.js
index c619cf1a..a4db9546 100644
--- a/test/service/cookiesSpec.js
+++ b/test/service/cookiesSpec.js
@@ -3,7 +3,7 @@
describe('$cookies', function() {
beforeEach(inject(function($provide) {
$provide.factory('$browser', function(){
- return angular.extend(new angular.module.NG_MOCK.$Browser(), {cookieHash: {preexisting:'oldCookie'}});
+ return angular.extend(new angular.module.ngMock.$Browser(), {cookieHash: {preexisting:'oldCookie'}});
});
}));
diff --git a/test/service/filter/filtersSpec.js b/test/service/filter/filtersSpec.js
index 275dbab4..70497a61 100644
--- a/test/service/filter/filtersSpec.js
+++ b/test/service/filter/filtersSpec.js
@@ -187,10 +187,10 @@ describe('filters', function() {
describe('date', function() {
- var morning = new angular.module.NG_MOCK.TzDate(+5, '2010-09-03T12:05:08.000Z'); //7am
- var noon = new angular.module.NG_MOCK.TzDate(+5, '2010-09-03T17:05:08.000Z'); //12pm
- var midnight = new angular.module.NG_MOCK.TzDate(+5, '2010-09-03T05:05:08.000Z'); //12am
- var earlyDate = new angular.module.NG_MOCK.TzDate(+5, '0001-09-03T05:05:08.000Z');
+ var morning = new angular.module.ngMock.TzDate(+5, '2010-09-03T12:05:08.000Z'); //7am
+ var noon = new angular.module.ngMock.TzDate(+5, '2010-09-03T17:05:08.000Z'); //12pm
+ var midnight = new angular.module.ngMock.TzDate(+5, '2010-09-03T05:05:08.000Z'); //12am
+ var earlyDate = new angular.module.ngMock.TzDate(+5, '0001-09-03T05:05:08.000Z');
var date;
diff --git a/test/service/logSpec.js b/test/service/logSpec.js
index e81ac851..a26e190f 100644
--- a/test/service/logSpec.js
+++ b/test/service/logSpec.js
@@ -13,7 +13,7 @@ describe('$log', function() {
$window = {};
logger = '';
$provide.service('$log', $LogProvider);
- $provide.value('$exceptionHandler', angular.module.NG_MOCK.rethrow);
+ $provide.value('$exceptionHandler', angular.module.ngMock.rethrow);
$provide.value('$window', $window);
}));
diff --git a/test/service/scopeSpec.js b/test/service/scopeSpec.js
index 88824fcd..54c835f5 100644
--- a/test/service/scopeSpec.js
+++ b/test/service/scopeSpec.js
@@ -285,7 +285,7 @@ describe('Scope', function() {
it('should return a function that allows listeners to be unregistered', inject(function($rootScope) {
- var root = angular.injector('NG')('$rootScope'),
+ var root = angular.injector('ng')('$rootScope'),
listener = jasmine.createSpy('watch listener'),
listenerRemove;
@@ -470,7 +470,7 @@ describe('Scope', function() {
it('should add listener for both $emit and $broadcast events', inject(function($rootScope) {
var log = '',
- root = angular.injector('NG')('$rootScope'),
+ root = angular.injector('ng')('$rootScope'),
child = root.$new();
function eventFn() {
@@ -490,7 +490,7 @@ describe('Scope', function() {
it('should return a function that deregisters the listener', inject(function($rootScope) {
var log = '',
- root = angular.injector('NG')('$rootScope'),
+ root = angular.injector('ng')('$rootScope'),
child = root.$new(),
listenerRemove;
@@ -669,7 +669,7 @@ describe('Scope', function() {
describe('listener', function() {
it('should receive event object', inject(function($rootScope) {
- var scope = angular.injector('NG')('$rootScope'),
+ var scope = angular.injector('ng')('$rootScope'),
child = scope.$new(),
event;
@@ -685,7 +685,7 @@ describe('Scope', function() {
it('should support passing messages as varargs', inject(function($rootScope) {
- var scope = angular.injector('NG')('$rootScope'),
+ var scope = angular.injector('ng')('$rootScope'),
child = scope.$new(),
args;