summaryrefslogtreecommitdiff
path: root/web-ui/src/common/flat_button/flat_button.spec.js
diff options
context:
space:
mode:
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', () => {