Skip to content

Commit

Permalink
Fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lucianogorza committed May 29, 2024
1 parent 23b5e72 commit a2ff8a9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -282,11 +282,12 @@ jest.mock('../../../kibana-services', () => ({
getUrlForApp: () => 'http://url',
},
}),
getAngularModule: () => { }
}));

jest.mock('../../../react-services/common-services', () => ({
getErrorOrchestrator: () => ({
handleError: options => {},
handleError: options => { },
}),
}));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ jest.mock('../../kibana-services', () => ({
getWazuhCheckUpdatesPlugin: jest.fn().mockReturnValue({
UpdatesNotification: () => <div>Updates notification</div>,
}),
getAngularModule: () => { }
}));

describe('WzUpdatesNotification tests', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ jest.mock('../../../kibana-services', () => ({
get: () => true
}
}),
getAngularModule: () => { }
}));

jest.mock('../../../react-services/common-services', () => ({
Expand Down

0 comments on commit a2ff8a9

Please sign in to comment.