Skip to content

Commit 9dd6d0a

Browse files
committed
fix 'Property 'checkId' is protected' in test
1 parent bc503fd commit 9dd6d0a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

libs/shared/base-editor-components/src/create/create.component.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ describe('CreateComponent', () => {
148148
when(MockedMysqlQueryService.getMaxId(mockTable, mockId)).thenReturn(throwError('error'));
149149
when(MockedMysqlQueryService.selectAll(mockTable, mockId, anything())).thenReturn(throwError('error'));
150150

151-
component.checkId();
151+
(component as any).checkId();
152152
component['getNextId']();
153153

154154
expect(spyError).toHaveBeenCalledTimes(2);

0 commit comments

Comments
 (0)