mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-23 11:37:38 +08:00
style(*): add rule disallowSpacesInAnonymousFunctionExpression beforeOpeningRoundBrace, including i18n generator
This commit is contained in:
committed by
Caitlin Potter
parent
94f5a285bf
commit
d3b1f502e3
@@ -59,7 +59,7 @@ describe('$controller', function() {
|
||||
});
|
||||
|
||||
|
||||
it('should throw an exception if a controller is called "hasOwnProperty"', function () {
|
||||
it('should throw an exception if a controller is called "hasOwnProperty"', function() {
|
||||
expect(function() {
|
||||
$controllerProvider.register('hasOwnProperty', function($scope) {});
|
||||
}).toThrowMinErr('ng', 'badname', "hasOwnProperty is not a valid controller name");
|
||||
@@ -118,7 +118,7 @@ describe('$controller', function() {
|
||||
|
||||
$window.a = {Foo: Foo};
|
||||
|
||||
expect(function () {
|
||||
expect(function() {
|
||||
$controller('a.Foo', {$scope: scope});
|
||||
}).toThrow();
|
||||
}));
|
||||
|
||||
Reference in New Issue
Block a user