build: update npm dependencies

This commit is contained in:
Olivier Combe
2017-09-25 10:43:45 +02:00
committed by Alex Rickabaugh
parent 2d5ef15e08
commit df91fd032d
79 changed files with 1259 additions and 1222 deletions

View File

@ -32,11 +32,11 @@ describe('Navigation lifecycle', function () {
registerComponent('oneCmp', {
template: '<div>{{oneCmp.number}}</div>',
controller: function () {this.number = 'one'}
controller: function () {this.number = 'one';}
});
registerComponent('twoCmp', {
template: '<div><a ng-link="[\'/Two\']">{{twoCmp.number}}</a></div>',
controller: function () {this.number = 'two'}
controller: function () {this.number = 'two';}
});
});

View File

@ -37,15 +37,15 @@ describe('navigation', function () {
});
registerDirective('oneCmp', {
template: '<div>{{oneCmp.number}}</div>',
controller: function () {this.number = 'one'}
controller: function () {this.number = 'one';}
});
registerDirective('twoCmp', {
template: '<div>{{twoCmp.number}}</div>',
controller: function () {this.number = 'two'}
controller: function () {this.number = 'two';}
});
registerComponent('threeCmp', {
template: '<div>{{$ctrl.number}}</div>',
controller: function () {this.number = 'three'}
controller: function () {this.number = 'three';}
});
registerComponent('getParams', {
template: '<div>{{$ctrl.params.x}}</div>',
@ -54,7 +54,7 @@ describe('navigation', function () {
this.params = next.params;
};
}
})
});
});
it('should work in a simple case', function () {
@ -331,7 +331,7 @@ describe('navigation', function () {
var definition = {
template: options.template || '',
controller: getController(options),
}
};
applyStaticProperties(definition.controller, options);
$compileProvider.component(name, definition);
}

View File

@ -68,7 +68,7 @@ describe('router', function () {
expect(homeElement.text()).toBe('Home');
expect(homeElement.isolateScope().$ctrl.$router).toBeDefined();
expect(router).toBeDefined();
})
});
});
it('should work when an async route is provided route data', function() {
@ -126,7 +126,7 @@ describe('router', function () {
var homeElement = elt.find('home-cmp');
expect(homeElement.text()).toBe('Home');
expect($routerOnActivate).toHaveBeenCalled();
})
});
});
it('should provide the current instruction', function() {

View File

@ -64,7 +64,7 @@ describe('ngLink', function () {
it('should allow params in routerLink directive', function () {
setup({baseHref: baseHref, html5Mode: html5Mode, hashPrefix: hashPrefix});
registerComponent('twoLinkCmp', '<div><a ng-link="[\'/Two\', {param: \'lol\'}]">{{twoLinkCmp.number}}</a></div>', function () {this.number = 'two'});
registerComponent('twoLinkCmp', '<div><a ng-link="[\'/Two\', {param: \'lol\'}]">{{twoLinkCmp.number}}</a></div>', function () {this.number = 'two';});
configureRouter([
{ path: '/a', component: 'twoLinkCmp' },
{ path: '/b/:param', component: 'twoCmp', name: 'Two' }
@ -78,7 +78,7 @@ describe('ngLink', function () {
it('should update the href of links with bound params', function () {
setup({baseHref: baseHref, html5Mode: html5Mode, hashPrefix: hashPrefix});
registerComponent('twoLinkCmp', '<div><a ng-link="[\'/Two\', {param: $ctrl.number}]">{{$ctrl.number}}</a></div>', function () {this.number = 43});
registerComponent('twoLinkCmp', '<div><a ng-link="[\'/Two\', {param: $ctrl.number}]">{{$ctrl.number}}</a></div>', function () {this.number = 43;});
configureRouter([
{ path: '/a', component: 'twoLinkCmp' },
{ path: '/b/:param', component: 'twoCmp', name: 'Two' }
@ -184,8 +184,8 @@ describe('ngLink', function () {
$locationProvider.hashPrefix(config.hashPrefix);
});
registerComponent('userCmp', '<div>hello {{$ctrl.$routeParams.name}}</div>', function () {});
registerComponent('oneCmp', '<div>{{$ctrl.number}}</div>', function () {this.number = 'one'});
registerComponent('twoCmp', '<div><a ng-link="[\'/Two\']">{{$ctrl.number}}</a></div>', function () {this.number = 'two'});
registerComponent('oneCmp', '<div>{{$ctrl.number}}</div>', function () {this.number = 'one';});
registerComponent('twoCmp', '<div><a ng-link="[\'/Two\']">{{$ctrl.number}}</a></div>', function () {this.number = 'two';});
}
function configureRouter(routeConfig) {

View File

@ -83,6 +83,6 @@ function provideHelpers(fn, preInject) {
$rootRouter: $rootRouter,
put: put,
compile: compile
})
}
});
};
}