Skip to content

Commit

Permalink
test fix isolation
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed Nov 20, 2019
1 parent 395c3a6 commit 4b8dd46
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions packages/material-ui/src/Tooltip/Tooltip.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,17 +44,17 @@ describe('<Tooltip />', () => {
};

before(() => {
// StrictModeViolation: uses Grow and tests a lot of impl details
mount = createMount({ strict: undefined });
classes = getClasses(<Tooltip {...defaultProps} />);
clock = useFakeTimers();
});

beforeEach(() => {
testReset();
clock = useFakeTimers();
// StrictModeViolation: uses Grow and tests a lot of impl details
mount = createMount({ strict: undefined });
});

after(() => {
afterEach(() => {
clock.restore();
mount.cleanUp();
});
Expand Down Expand Up @@ -131,7 +131,6 @@ describe('<Tooltip />', () => {
clock.tick(0);
wrapper.update();
assert.strictEqual(wrapper.find(Popper).props().open, false);
assert.strictEqual(wrapper.find(Popper).props().open, false);
});

it('should be controllable', () => {
Expand Down

0 comments on commit 4b8dd46

Please sign in to comment.