Updated unit test
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Joan Sanchez 2021-01-18 09:08:50 +01:00
parent 783a8dee48
commit 239e64db48
1 changed files with 2 additions and 1 deletions

View File

@ -1,4 +1,5 @@
import './index.js'; import './index.js';
import crudModel from 'core/mocks/crud-model';
describe('Ticket component vnTicketService', () => { describe('Ticket component vnTicketService', () => {
let controller; let controller;
@ -11,7 +12,7 @@ describe('Ticket component vnTicketService', () => {
beforeEach(inject(($componentController, _$httpBackend_, $rootScope) => { beforeEach(inject(($componentController, _$httpBackend_, $rootScope) => {
$httpBackend = _$httpBackend_; $httpBackend = _$httpBackend_;
$scope = $rootScope.$new(); $scope = $rootScope.$new();
$scope.typesModel = crudModel;
$element = angular.element(`<div></div>`); $element = angular.element(`<div></div>`);
controller = $componentController('vnTicketService', {$scope, $element}); controller = $componentController('vnTicketService', {$scope, $element});
})); }));