Replace inline styles with stylesheet (#3115)

This commit is contained in:
Yamagishi Kazutoshi authored and Eugen Rochko committed 2017-05-19 11:42:54 +02:00
1 parent 550863198c
commit b8b7b506a2
13 files changed
+122 -55

No files matched your search

+2 -4
View File
@@ -51,14 +51,12 @@ describe('<Button />', () => {
it('renders style="display: block; width: 100%;" if props.block given', () => {
const wrapper = shallow(<Button block />);
expect(wrapper.find('button')).to.have.style('display', 'block');
expect(wrapper.find('button')).to.have.style('width', '100%');
expect(wrapper.find('button')).to.have.className('button--block');
});
it('renders style="display: inline-block; width: auto;" by default', () => {
const wrapper = shallow(<Button />);
expect(wrapper.find('button')).to.have.style('display', 'inline-block');
expect(wrapper.find('button')).to.have.style('width', 'auto');
expect(wrapper.find('button')).to.not.have.className('button--block');
});
it('adds class "button-secondary" if props.secondary given', () => {