karma test fix locale
This commit is contained in:
parent
afe051883e
commit
00018ffda4
|
@ -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};
|
||||
|
|
Loading…
Reference in New Issue