UNPKG

rsuite

Version:

A suite of react components

15 lines (12 loc) 500 B
import React from 'react'; import ReactDOM from 'react-dom'; import Grid from '../index'; import { createTestContainer, getDOMNode, getStyle, itChrome } from '@test/testUtils'; import '../styles/index'; describe('Grid styles', () => { itChrome('Should render the correct styles', () => { const instanceRef = React.createRef(); ReactDOM.render(<Grid ref={instanceRef} />, createTestContainer()); assert.equal(getStyle(getDOMNode(instanceRef.current), 'padding'), '0px 5px'); }); });