/* eslint-disable jsx-a11y/control-has-associated-label */ import React from 'react'; import { mount } from 'enzyme'; import notification from '..'; import ConfigProvider from '../../config-provider'; import { render, fireEvent } from '../../../tests/utils'; describe('notification.hooks', () => { beforeEach(() => { jest.useFakeTimers(); }); afterEach(() => { jest.useRealTimers(); }); it('should work', () => { const Context = React.createContext('light'); const Demo = () => { const [api, holder] = notification.useNotification(); return (