Skip to content

Commit

Permalink
Fix breaking changes
Browse files Browse the repository at this point in the history
  • Loading branch information
eps1lon committed Nov 8, 2021
1 parent f4454b1 commit 14d5faf
Show file tree
Hide file tree
Showing 40 changed files with 50 additions and 50 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ describe('<ClickAwayListener />', () => {
*/
let clock;
beforeEach(() => {
clock = useFakeTimers();
clock = useFakeTimers({ shouldClearNativeTimers: true });
});

afterEach(() => {
Expand Down
4 changes: 2 additions & 2 deletions packages/mui-core/src/Popper/Popper.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ describe('<Popper />', () => {
describe('prop: transition', () => {
let clock;
beforeEach(() => {
clock = useFakeTimers();
clock = useFakeTimers({ shouldClearNativeTimers: true });
});

afterEach(() => {
Expand Down Expand Up @@ -294,7 +294,7 @@ describe('<Popper />', () => {
describe('display', () => {
let clock;
beforeEach(() => {
clock = useFakeTimers();
clock = useFakeTimers({ shouldClearNativeTimers: true });
});

afterEach(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ describe('<TextareaAutosize />', () => {
let clock;

beforeEach(() => {
clock = useFakeTimers();
clock = useFakeTimers({ shouldClearNativeTimers: true });
});

afterEach(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ describe('<TrapFocus />', () => {
let clock;

beforeEach(() => {
clock = useFakeTimers();
clock = useFakeTimers({ shouldClearNativeTimers: true });
});

afterEach(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { adapterToUse, wrapPickerMount, createPickerRender } from '../internal/p
describe('<CalendarPicker />', () => {
let clock: SinonFakeTimers;
beforeEach(() => {
clock = useFakeTimers();
clock = useFakeTimers({ shouldClearNativeTimers: true });
});
afterEach(() => {
clock.restore();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const UncontrolledOpenDesktopDatePicker = (({
describe('<DesktopDatePicker />', () => {
let clock: SinonFakeTimers;
beforeEach(() => {
clock = useFakeTimers();
clock = useFakeTimers({ shouldClearNativeTimers: true });
});
afterEach(() => {
clock.restore();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function TestKeyboardDatePicker(
describe('<DesktopDatePicker /> keyboard interactions', () => {
let clock: ReturnType<typeof useFakeTimers>;
beforeEach(() => {
clock = useFakeTimers();
clock = useFakeTimers({ shouldClearNativeTimers: true });
});
afterEach(() => {
clock.restore();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const defaultRangeRenderInput = (startProps: TextFieldProps, endProps: TextField
describe('<DesktopDateRangePicker />', () => {
let clock: SinonFakeTimers;
beforeEach(() => {
clock = useFakeTimers();
clock = useFakeTimers({ shouldClearNativeTimers: true });
});
afterEach(() => {
clock.restore();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { wrapPickerMount, createPickerRender, adapterToUse } from '../internal/p
describe('<DesktopTimePicker />', () => {
let clock: ReturnType<typeof useFakeTimers>;
beforeEach(() => {
clock = useFakeTimers();
clock = useFakeTimers({ shouldClearNativeTimers: true });
});

afterEach(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { createPickerRender, adapterToUse } from '../internal/pickers/test-utils
describe('<StaticDatePicker />', () => {
let clock: SinonFakeTimers;
beforeEach(() => {
clock = useFakeTimers();
clock = useFakeTimers({ shouldClearNativeTimers: true });
});
afterEach(() => {
clock.restore();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { adapterToUse, createPickerRender } from '../internal/pickers/test-utils
describe('<StaticDatePicker /> keyboard interactions', () => {
let clock: ReturnType<typeof useFakeTimers>;
beforeEach(() => {
clock = useFakeTimers();
clock = useFakeTimers({ shouldClearNativeTimers: true });
});
afterEach(() => {
clock.restore();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const defaultRangeRenderInput = (startProps: TextFieldProps, endProps: TextField
describe('<StaticDateRangePicker />', () => {
let clock: ReturnType<typeof useFakeTimers>;
beforeEach(() => {
clock = useFakeTimers();
clock = useFakeTimers({ shouldClearNativeTimers: true });
});
afterEach(() => {
clock.restore();
Expand Down
2 changes: 1 addition & 1 deletion packages/mui-material-next/src/Button/Ripple.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ describe('<Ripple />', () => {
let clock;

beforeEach(() => {
clock = useFakeTimers();
clock = useFakeTimers({ shouldClearNativeTimers: true });
});

afterEach(() => {
Expand Down
2 changes: 1 addition & 1 deletion packages/mui-material-next/src/Button/TouchRipple.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ describe('<TouchRipple />', () => {
let clock;

beforeEach(() => {
clock = useFakeTimers();
clock = useFakeTimers({ shouldClearNativeTimers: true });
});

afterEach(() => {
Expand Down
2 changes: 1 addition & 1 deletion packages/mui-material/src/Backdrop/Backdrop.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ describe('<Backdrop />', () => {
*/
let clock;
beforeEach(() => {
clock = useFakeTimers();
clock = useFakeTimers({ shouldClearNativeTimers: true });
});
afterEach(() => {
clock.restore();
Expand Down
2 changes: 1 addition & 1 deletion packages/mui-material/src/ButtonBase/Ripple.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ describe('<Ripple />', () => {
let clock;

beforeEach(() => {
clock = useFakeTimers();
clock = useFakeTimers({ shouldClearNativeTimers: true });
});

afterEach(() => {
Expand Down
2 changes: 1 addition & 1 deletion packages/mui-material/src/ButtonBase/TouchRipple.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ describe('<TouchRipple />', () => {
let clock;

beforeEach(() => {
clock = useFakeTimers();
clock = useFakeTimers({ shouldClearNativeTimers: true });
});

afterEach(() => {
Expand Down
4 changes: 2 additions & 2 deletions packages/mui-material/src/Collapse/Collapse.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ describe('<Collapse />', () => {
const handleAddEndListener = spy();

beforeEach(() => {
clock = useFakeTimers();
clock = useFakeTimers({ shouldClearNativeTimers: true });
const renderProps = render(
<Collapse
addEndListener={handleAddEndListener}
Expand Down Expand Up @@ -149,7 +149,7 @@ describe('<Collapse />', () => {
let clock;

beforeEach(() => {
clock = useFakeTimers();
clock = useFakeTimers({ shouldClearNativeTimers: true });
});

afterEach(() => {
Expand Down
2 changes: 1 addition & 1 deletion packages/mui-material/src/Dialog/Dialog.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function clickBackdrop(view) {
describe('<Dialog />', () => {
let clock;
beforeEach(() => {
clock = useFakeTimers();
clock = useFakeTimers({ shouldClearNativeTimers: true });
});

afterEach(() => {
Expand Down
2 changes: 1 addition & 1 deletion packages/mui-material/src/Drawer/Drawer.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ describe('<Drawer />', () => {
*/
let clock;
beforeEach(() => {
clock = useFakeTimers();
clock = useFakeTimers({ shouldClearNativeTimers: true });
});
afterEach(() => {
clock.restore();
Expand Down
2 changes: 1 addition & 1 deletion packages/mui-material/src/Fade/Fade.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ describe('<Fade />', () => {
let clock;

beforeEach(() => {
clock = useFakeTimers();
clock = useFakeTimers({ shouldClearNativeTimers: true });
});

afterEach(() => {
Expand Down
4 changes: 2 additions & 2 deletions packages/mui-material/src/Grow/Grow.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ describe('<Grow />', () => {
let clock;

beforeEach(() => {
clock = useFakeTimers();
clock = useFakeTimers({ shouldClearNativeTimers: true });
});

afterEach(() => {
Expand Down Expand Up @@ -125,7 +125,7 @@ describe('<Grow />', () => {
let clock;

beforeEach(() => {
clock = useFakeTimers();
clock = useFakeTimers({ shouldClearNativeTimers: true });
});

afterEach(() => {
Expand Down
2 changes: 1 addition & 1 deletion packages/mui-material/src/Menu/Menu.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ describe('<Menu />', () => {
*/
let clock;
beforeEach(() => {
clock = useFakeTimers();
clock = useFakeTimers({ shouldClearNativeTimers: true });
});
afterEach(() => {
clock.restore();
Expand Down
6 changes: 3 additions & 3 deletions packages/mui-material/src/Modal/Modal.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ describe('<Modal />', () => {
let clock;

beforeEach(() => {
clock = useFakeTimers();
clock = useFakeTimers({ shouldClearNativeTimers: true });
});

afterEach(() => {
Expand Down Expand Up @@ -576,7 +576,7 @@ describe('<Modal />', () => {
*/
let clock;
beforeEach(() => {
clock = useFakeTimers();
clock = useFakeTimers({ shouldClearNativeTimers: true });
});
afterEach(() => {
clock.restore();
Expand Down Expand Up @@ -681,7 +681,7 @@ describe('<Modal />', () => {
*/
let clock;
beforeEach(() => {
clock = useFakeTimers();
clock = useFakeTimers({ shouldClearNativeTimers: true });
});
afterEach(() => {
clock.restore();
Expand Down
2 changes: 1 addition & 1 deletion packages/mui-material/src/Popover/Popover.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ describe('<Popover />', () => {
*/
let clock;
beforeEach(() => {
clock = useFakeTimers();
clock = useFakeTimers({ shouldClearNativeTimers: true });
});
afterEach(() => {
clock.restore();
Expand Down
2 changes: 1 addition & 1 deletion packages/mui-material/src/Select/Select.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ describe('<Select />', () => {
*/
let clock;
beforeEach(() => {
clock = useFakeTimers();
clock = useFakeTimers({ shouldClearNativeTimers: true });
});
afterEach(() => {
clock.restore();
Expand Down
4 changes: 2 additions & 2 deletions packages/mui-material/src/Slide/Slide.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ describe('<Slide />', () => {
let clock;

beforeEach(() => {
clock = useFakeTimers();
clock = useFakeTimers({ shouldClearNativeTimers: true });
});

afterEach(() => {
Expand Down Expand Up @@ -515,7 +515,7 @@ describe('<Slide />', () => {
let clock;

beforeEach(() => {
clock = useFakeTimers();
clock = useFakeTimers({ shouldClearNativeTimers: true });
});

afterEach(() => {
Expand Down
2 changes: 1 addition & 1 deletion packages/mui-material/src/Snackbar/Snackbar.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ describe('<Snackbar />', () => {
*/
let clock;
beforeEach(() => {
clock = useFakeTimers();
clock = useFakeTimers({ shouldClearNativeTimers: true });
});

afterEach(() => {
Expand Down
2 changes: 1 addition & 1 deletion packages/mui-material/src/SpeedDial/SpeedDial.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ describe('<SpeedDial />', () => {
let clock;

beforeEach(() => {
clock = useFakeTimers();
clock = useFakeTimers({ shouldClearNativeTimers: true });
});

afterEach(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import SpeedDialAction, { speedDialActionClasses as classes } from '@mui/materia
describe('<SpeedDialAction />', () => {
let clock;
beforeEach(() => {
clock = useFakeTimers();
clock = useFakeTimers({ shouldClearNativeTimers: true });
});

afterEach(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ describe('<SwipeableDrawer />', () => {
*/
let clock;
beforeEach(() => {
clock = useFakeTimers();
clock = useFakeTimers({ shouldClearNativeTimers: true });
});
afterEach(() => {
clock.restore();
Expand Down
2 changes: 1 addition & 1 deletion packages/mui-material/src/Tabs/ScrollbarSize.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ describe('<ScrollbarSize />', () => {
let clock;

beforeEach(() => {
clock = useFakeTimers();
clock = useFakeTimers({ shouldClearNativeTimers: true });
});

afterEach(() => {
Expand Down
8 changes: 4 additions & 4 deletions packages/mui-material/src/Tabs/Tabs.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ describe('<Tabs />', () => {
);

beforeEach(() => {
clock = useFakeTimers();
clock = useFakeTimers({ shouldClearNativeTimers: true });
});

afterEach(() => {
Expand Down Expand Up @@ -521,7 +521,7 @@ describe('<Tabs />', () => {
let clock;

beforeEach(() => {
clock = useFakeTimers();
clock = useFakeTimers({ shouldClearNativeTimers: true });
});

afterEach(() => {
Expand Down Expand Up @@ -686,7 +686,7 @@ describe('<Tabs />', () => {
let clock;

beforeEach(() => {
clock = useFakeTimers();
clock = useFakeTimers({ shouldClearNativeTimers: true });
});

afterEach(() => {
Expand Down Expand Up @@ -735,7 +735,7 @@ describe('<Tabs />', () => {
let clock;

beforeEach(() => {
clock = useFakeTimers();
clock = useFakeTimers({ shouldClearNativeTimers: true });
});

afterEach(() => {
Expand Down
2 changes: 1 addition & 1 deletion packages/mui-material/src/Tooltip/Tooltip.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ describe('<Tooltip />', () => {
let clock;
beforeEach(() => {
testReset();
clock = useFakeTimers();
clock = useFakeTimers({ shouldClearNativeTimers: true });
});

afterEach(() => {
Expand Down
2 changes: 1 addition & 1 deletion packages/mui-material/src/Zoom/Zoom.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ describe('<Zoom />', () => {
let clock;

beforeEach(() => {
clock = useFakeTimers();
clock = useFakeTimers({ shouldClearNativeTimers: true });
});

afterEach(() => {
Expand Down
Loading

0 comments on commit 14d5faf

Please sign in to comment.