UNPKG

@groceristar/pdf-export

Version:
26 lines (21 loc) 815 B
/* globals describe, it, expect */ // import React from 'react' // import ReactDOM from 'react-dom' // import Enzyme, { shallow, configure } from 'enzyme' // import { shallow, configure } from 'enzyme' // import EnzymeAdapter from 'enzyme-adapter-react-16' // import TodaysDate from '~/TodaysDate' // import DownloadPDFLink from './DownloadPDFLink' // Setup enzyme's react adapter // configure({ adapter: new EnzymeAdapter() }) // @TODO tests should work. not like right now describe('<TodaysDate /> component shallow only methods ', () => { it('renders without crashing', () => { const x = true // const wrapper = shallow(<DownloadPDFLink />) // expect(wrapper).toBe({}); // this 2 lines below don't make a lot of sense expect(x).toBe(true) // ReactDOM.render(<List />, div); }) })