fix(specs) Use shallow rendering

Now that we have 15.4.2, we don't have to worry about:
https://github.com/facebook/react/pull/8097
This commit is contained in:
Juan Tejada 2017-02-10 12:19:38 -08:00
parent 0638b843b6
commit 6d379efba1

View file

@ -1,6 +1,6 @@
import React from 'react'
import ReactDOM from 'react-dom'
import {mount} from 'enzyme'
import {mount, shallow} from 'enzyme'
import {SelectableTable, EditableTableCell, EditableTable} from 'nylas-component-kit'
import {selection, cellProps, tableProps, testDataSource} from '../fixtures/table-data'
@ -103,7 +103,7 @@ describe('EditableTable Components', function describeBlock() {
describe('EditableTable', () => {
function renderTable(props) {
return mount(
return shallow(
<EditableTable
{...tableProps}
{...props}
@ -143,7 +143,7 @@ describe('EditableTable Components', function describeBlock() {
expect(table.prop('extraProps').InputRenderer).toBe(InputRenderer)
expect(table.prop('other')).toEqual('other')
expect(table.prop('CellRenderer')).toBe(EditableTableCell)
expect(table.prop('className')).toEqual('editable-table')
expect(table.hasClass('editable-table')).toBe(true)
});
});
});