TechNote/app/components/__tests__/EntrySelector-test.jsx
Joey Payne e53cbd0fc6 Add testing infrastructure using jest
Added simple test to illustrate how to use jest with react.
2016-03-03 14:32:30 -07:00

17 lines
476 B
JavaScript

jest.autoMockOff()
import React from 'react'
import ReactDOM from 'react-dom'
import TestUtils from 'react-addons-test-utils'
const EntrySelector = require('../EntrySelector').default
describe('EntrySelector', () => {
it('test jest', () => {
var entrySelector = TestUtils.renderIntoDocument(
<EntrySelector id="entry-selector" className="left inline fill-height" />
)
expect(entrySelector.state.entries.length).toEqual(0)
})
})