Skip to content

Commit

Permalink
fix: coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
nada-deriv committed Sep 17, 2024
1 parent ca1da42 commit e358ec4
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ import AlertComponent from '../AlertComponent';
const mockProps = {
onClick: jest.fn(),
};

jest.mock('@deriv-com/ui', () => ({
...jest.requireActual('@deriv-com/ui'),
useDevice: () => ({ isDesktop: true }),
}));

describe('AlertComponent', () => {
it('should render the component as expected', () => {
render(<AlertComponent {...mockProps} />);
Expand Down

0 comments on commit e358ec4

Please sign in to comment.