Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Artur Fracala committed Oct 15, 2024
1 parent 77819d1 commit 676271f
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,15 @@ jest.mock('@livechat/widget-core-sdk', () => {
};
});

jest.mock('../shared/page-data', () => {
return {
withPageData: jest.fn().mockImplementation(widget => ({
...widget,
getPageData: jest.fn()
}))
};
});

describe('FullscreenWidget', () => {
it('has a `setNotificationBadge` method', () => {
const connection = createMockConnection();
Expand Down

0 comments on commit 676271f

Please sign in to comment.