Skip to content

Commit

Permalink
fix matchMedia stub
Browse files Browse the repository at this point in the history
  • Loading branch information
cherniavskii committed Aug 8, 2024
1 parent b521dce commit c30d0b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/utils/pickers/misc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import { OpenPickerParams } from './openPicker';
export const stubMatchMedia = (matches = true) =>
sinon.stub().returns({
matches,
addListener: () => {},
removeListener: () => {},
addEventListener: () => {},
removeEventListener: () => {},
});

const getChangeCountForComponentFamily = (componentFamily: PickerComponentFamily) => {
Expand Down

0 comments on commit c30d0b5

Please sign in to comment.