UNPKG

wix-storybook-utils

Version:

Utilities for automated component documentation within Storybook

20 lines 758 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); }); }); }); //# sourceMappingURL=index.spec.js.map