Skip to content
Snippets Groups Projects
Verified Commit 17439bc9 authored by Sebastian Bergandy's avatar Sebastian Bergandy :keyboard:
Browse files

OZG-7473 replace string with const

Based on CR comment.
parent 75db18a0
No related branches found
No related tags found
1 merge request!104Administration: Neu hinzugefügte Felder für Statistik speichern
import { ADMIN_FORMSERVICE } from '@admin-client/shared';
import { EMPTY_STRING } from '@alfa-client/tech-shared';
import { existsAsHtmlElement, mock, Mock, mockGetValue, triggerEvent } from '@alfa-client/test-utils';
import { existsAsHtmlElement, mock, Mock, MockEvent, mockGetValue, triggerEvent } from '@alfa-client/test-utils';
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { FormBuilder, FormControl, FormGroup } from '@angular/forms';
import { expect } from '@jest/globals';
......@@ -78,7 +78,7 @@ describe('AggregationMappingFieldFormComponent', () => {
});
it('should remove mapping on click', () => {
triggerEvent({ fixture, elementSelector: removeMappingButtonTestId, name: 'clickEmitter', data: fieldIndex });
triggerEvent({ fixture, elementSelector: removeMappingButtonTestId, name: MockEvent.CLICK, data: fieldIndex });
expect(formService.removeMapping).toHaveBeenCalledWith(fieldIndex);
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment