karma test fix locale

This commit is contained in:
Joan Sanchez 2018-06-21 09:07:05 +02:00
parent afe051883e
commit 00018ffda4
1 changed files with 1 additions and 0 deletions

View File

@ -15,6 +15,7 @@ describe('Item', () => {
beforeEach(angular.mock.inject((_$componentController_, $rootScope, _$httpBackend_) => { beforeEach(angular.mock.inject((_$componentController_, $rootScope, _$httpBackend_) => {
$componentController = _$componentController_; $componentController = _$componentController_;
$httpBackend = _$httpBackend_; $httpBackend = _$httpBackend_;
$httpBackend.when('GET', /\/locale\/\w+\/[a-z]{2}\.json/).respond({});
$scope = $rootScope.$new(); $scope = $rootScope.$new();
controller = $componentController('vnItemLastEntries', {$scope: $scope}); controller = $componentController('vnItemLastEntries', {$scope: $scope});
controller.item = {id: 3}; controller.item = {id: 3};