From 00018ffda498d0e9189bab49b7626342855a400d Mon Sep 17 00:00:00 2001 From: Joan Date: Thu, 21 Jun 2018 09:07:05 +0200 Subject: [PATCH] karma test fix locale --- client/item/src/last-entries/index.spec.js | 1 + 1 file changed, 1 insertion(+) diff --git a/client/item/src/last-entries/index.spec.js b/client/item/src/last-entries/index.spec.js index 229266188..50e68d4d5 100644 --- a/client/item/src/last-entries/index.spec.js +++ b/client/item/src/last-entries/index.spec.js @@ -15,6 +15,7 @@ describe('Item', () => { beforeEach(angular.mock.inject((_$componentController_, $rootScope, _$httpBackend_) => { $componentController = _$componentController_; $httpBackend = _$httpBackend_; + $httpBackend.when('GET', /\/locale\/\w+\/[a-z]{2}\.json/).respond({}); $scope = $rootScope.$new(); controller = $componentController('vnItemLastEntries', {$scope: $scope}); controller.item = {id: 3};