mirror of
https://dev.azure.com/hugendubel/ISA/_git/ISA-Frontend
synced 2025-12-28 22:42:11 +01:00
chore: migrate nx to latest
This commit is contained in:
@@ -130,7 +130,7 @@ describe('filterInputMapping', () => {
|
||||
};
|
||||
|
||||
// Act & Assert
|
||||
expect(() => filterInputMapping(group, input)).toThrowError(
|
||||
expect(() => filterInputMapping(group, input)).toThrow(
|
||||
'Unknown input type: 999',
|
||||
);
|
||||
expect(mockTextFilterInputMapping).not.toHaveBeenCalled();
|
||||
|
||||
@@ -65,7 +65,10 @@ describe('CheckboxInputComponent', () => {
|
||||
|
||||
it('should initialize form controls based on input options', () => {
|
||||
// Arrange
|
||||
const spyOnInitFormControl = jest.spyOn(spectator.component, 'initFormControl');
|
||||
const spyOnInitFormControl = jest.spyOn(
|
||||
spectator.component,
|
||||
'initFormControl',
|
||||
);
|
||||
|
||||
// Act
|
||||
spectator.detectChanges();
|
||||
@@ -121,10 +124,10 @@ describe('CheckboxInputComponent', () => {
|
||||
filterService.setInputCheckboxValue('test-key', ['option1', 'option2']);
|
||||
|
||||
// Assert
|
||||
expect(filterService.setInputCheckboxValue).toHaveBeenCalledWith('test-key', [
|
||||
'option1',
|
||||
'option2',
|
||||
]);
|
||||
expect(filterService.setInputCheckboxValue).toHaveBeenCalledWith(
|
||||
'test-key',
|
||||
['option1', 'option2'],
|
||||
);
|
||||
});
|
||||
|
||||
it('should toggle all checkboxes when toggleSelection is called', () => {
|
||||
@@ -251,6 +254,8 @@ describe('CheckboxInputComponent with non-matching key', () => {
|
||||
|
||||
it('should throw error when input is not found', () => {
|
||||
// Act & Assert
|
||||
expect(() => spectator.detectChanges()).toThrowError('Input not found for key: test-key');
|
||||
expect(() => spectator.detectChanges()).toThrow(
|
||||
'Input not found for key: test-key',
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user