import React from 'react'; import { mount } from 'enzyme'; import { expect } from 'chai'; import RefreshIntervalModal from '../../../../src/dashboard/components/RefreshIntervalModal'; describe('RefreshIntervalModal', () => { const mockedProps = { triggerNode: , }; it('is valid', () => { expect( React.isValidElement(), ).to.equal(true); }); it('renders the trigger node', () => { const wrapper = mount(); expect(wrapper.find('.fa-edit')).to.have.length(1); }); });