summaryrefslogtreecommitdiff
path: root/web-ui/src/common/flat_button/flat_button.spec.js
diff options
context:
space:
mode:
authorSriram Viswanathan <sriramv@thoughtworks.com>2017-03-22 18:03:10 -0300
committerSriram Viswanathan <sriramv@thoughtworks.com>2017-03-23 17:16:40 -0300
commita6dbb3a7849881247270f0cf84d8b725f9022310 (patch)
treeda0a00e35b4119dc9d55491967f8625a014a7321 /web-ui/src/common/flat_button/flat_button.spec.js
parentc56bf133feddfcfed9487c16229138fcdb046983 (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.js6
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', () => {