diff --git a/alfa-client/libs/design-component/src/lib/form/checkbox-editor/checkbox-editor.component.spec.ts b/alfa-client/libs/design-component/src/lib/form/checkbox-editor/checkbox-editor.component.spec.ts index e5dd90b745edd9549abd452e66b8b566ce118e01..cada7efb7a5dc25e643c2854438cd39f626f70a9 100644 --- a/alfa-client/libs/design-component/src/lib/form/checkbox-editor/checkbox-editor.component.spec.ts +++ b/alfa-client/libs/design-component/src/lib/form/checkbox-editor/checkbox-editor.component.spec.ts @@ -56,7 +56,7 @@ describe('CheckboxEditorComponent', () => { describe('hasError', () => { it('should return true', () => { component.fieldControl.setErrors({ 1: createInvalidParam() }); - + component._updateInvalidParams(); const result: boolean = component.hasError; expect(result).toBe(true); @@ -76,6 +76,7 @@ describe('CheckboxEditorComponent', () => { describe('error message', () => { it('should show', () => { component.fieldControl.setErrors({ 1: createInvalidParam() }); + component._updateInvalidParams(); fixture.detectChanges(); const element: HTMLElement = getElementFromFixture(fixture, errorMessageId);