UNPKG

wix-style-react

Version:
23 lines (19 loc) 674 B
/* global expect describe it */ import React from 'react'; import { shallow } from 'enzyme'; import styles from './styles.scss'; import Cell from '.'; describe('Cell', function () { describe('`span` prop', function () { it('should be set in `gridColumn` style', function () { var cell = shallow(React.createElement(Cell, { span: 4 })); expect(cell.prop('style').gridColumn).toEqual('span 4'); }); }); describe('`vertical`', function () { it('should set correct classname', function () { var cell = shallow(React.createElement(Cell, { vertical: true })); expect(cell.prop('className')).toMatch(styles.vertical); }); }); });