MetaPhase-Consulting/State-TalentMAP

View on GitHub
src/Components/TextEditor/TextEditorLoadable/TextEditorLoadable.test.jsx

Summary

Maintainability
A
0 mins
Test Coverage
import { shallow } from 'enzyme';
import TextEditorLoadable, { path } from './TextEditorLoadable';

describe('TextEditorLoadable', () => {
  it('is defined', () => {
    const wrapper = shallow(
      <TextEditorLoadable />,
    );
    expect(wrapper).toBeDefined();
  });

  it('has a defined loadable content', (done) => {
    const loadablePath = path();
    setTimeout(() => {
      expect(loadablePath).toBeDefined();
      done();
    }, 0);
  });
});