Skip to content

Commit

Permalink
fixing TS issue
Browse files Browse the repository at this point in the history
  • Loading branch information
cauemarcondes committed Jun 10, 2021
1 parent 7dadd85 commit ba03e53
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ const createSetupMock = (): jest.Mocked<TutorialServiceSetup> => {
registerDirectoryNotice: jest.fn(),
registerDirectoryHeaderLink: jest.fn(),
registerModuleNotice: jest.fn(),
registerCustomStatusCheck: jest.fn(),
registerCustomComponent: jest.fn(),
};
return setup;
};
Expand All @@ -26,6 +28,10 @@ const createMock = (): jest.Mocked<PublicMethodsOf<TutorialService>> => {
getDirectoryNotices: jest.fn(() => []),
getDirectoryHeaderLinks: jest.fn(() => []),
getModuleNotices: jest.fn(() => []),
getCustomStatusCheck: jest.fn(),
getCustomComponent: jest.fn(),
setTutorial: jest.fn(),
getTutorial: jest.fn(),
};
service.setup.mockImplementation(createSetupMock);
return service;
Expand Down

0 comments on commit ba03e53

Please sign in to comment.