diff options
author | Sriram Viswanathan <sriramv@thoughtworks.com> | 2017-03-22 18:03:10 -0300 |
---|---|---|
committer | Sriram Viswanathan <sriramv@thoughtworks.com> | 2017-03-23 17:16:40 -0300 |
commit | a6dbb3a7849881247270f0cf84d8b725f9022310 (patch) | |
tree | da0a00e35b4119dc9d55491967f8625a014a7321 /web-ui/src/common/flat_button/flat_button.spec.js | |
parent | c56bf133feddfcfed9487c16229138fcdb046983 (diff) |
|#973| Thais + Sriram | Adds name attribute to logout button and make it transparent on hover
Diffstat (limited to 'web-ui/src/common/flat_button/flat_button.spec.js')
-rw-r--r-- | web-ui/src/common/flat_button/flat_button.spec.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/web-ui/src/common/flat_button/flat_button.spec.js b/web-ui/src/common/flat_button/flat_button.spec.js index 500eb8fb..8939e3d9 100644 --- a/web-ui/src/common/flat_button/flat_button.spec.js +++ b/web-ui/src/common/flat_button/flat_button.spec.js @@ -7,7 +7,11 @@ describe('FlatButton', () => { let flatButton; beforeEach(() => { - flatButton = shallow(<FlatButton buttonText='Logout' fontIconClass='fa fa-sign-out' />); + flatButton = shallow(<FlatButton name='logout' buttonText='Logout' fontIconClass='fa fa-sign-out' />); + }); + + it('renders a FlatButton of type submit with name logout', () => { + expect(flatButton.find('FlatButton').props().name).toEqual('logout'); }); it('renders a FlatButton of type submit with text logout', () => { |