import React from 'react' ; import { shallow } from 'enzyme' ; import { Cell } from './cell' ; describe ( 'Cell' , ( ) => { it ( 'renders a table cell with the provided content and styles' , ( ) => { const wrapper = shallow ( < Cell flexBasis = "foo" flexGrow = { 0 } alignItems = "bar" > Content < /Cell>); expect ( wrapper . props ( ) ) . toEqual ( { style : { flexBasis : 'foo' , flexGrow : 0 , alignItems : 'bar' , } , children : 'Content' , } ) ; } ) ; } ) ;