Browse Source

fix jest timer warning

pull/17262/head
afc163 5 years ago
parent
commit
8f861a35ac
No known key found for this signature in database GPG Key ID: 738F973FCE5C6B48
  1. 4
      components/carousel/__tests__/index.test.js

4
components/carousel/__tests__/index.test.js

@ -3,11 +3,11 @@ import { mount } from 'enzyme';
import Carousel from '..';
describe('Carousel', () => {
beforeAll(() => {
beforeEach(() => {
jest.useFakeTimers();
});
afterAll(() => {
afterEach(() => {
jest.useRealTimers();
});

Loading…
Cancel
Save