about summary refs log tree commit diff
path: root/spec/javascript
diff options
context:
space:
mode:
authorYamagishi Kazutoshi <ykzts@desire.sh>2017-05-19 18:42:54 +0900
committerEugen Rochko <eugen@zeonfederated.com>2017-05-19 11:42:54 +0200
commitb8b7b506a27ddc1373032078a4f1cfd47242627a (patch)
treec43ea178901461116913d7cd710e08066f6e3c7a /spec/javascript
parent550863198c111d04d463b1fdfcf6d4515ceca1fe (diff)
Replace inline styles with stylesheet (#3115)
Diffstat (limited to 'spec/javascript')
-rw-r--r--spec/javascript/components/button.test.jsx6
1 files changed, 2 insertions, 4 deletions
diff --git a/spec/javascript/components/button.test.jsx b/spec/javascript/components/button.test.jsx
index c32fae32a..e08671c01 100644
--- a/spec/javascript/components/button.test.jsx
+++ b/spec/javascript/components/button.test.jsx
@@ -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', () => {