diff --git a/src/FlatButton/FlatButton.spec.js b/src/FlatButton/FlatButton.spec.js
index 4fa9ebd5cb1486..7e62433084db46 100644
--- a/src/FlatButton/FlatButton.spec.js
+++ b/src/FlatButton/FlatButton.spec.js
@@ -4,6 +4,7 @@ import {shallow} from 'enzyme';
import {assert} from 'chai';
import FlatButton from './FlatButton';
import getMuiTheme from '../styles/getMuiTheme';
+import ActionAndroid from '../svg-icons/action/android';
describe('', () => {
const muiTheme = getMuiTheme();
@@ -92,6 +93,19 @@ describe('', () => {
assert.ok(icon.is({color: flatButtonTheme.primaryTextColor}));
});
+ it('colors the icon with the passed color in prop', () => {
+ let color = 'white';
+ const wrapper = shallowWithContext(
+ }
+ />
+ );
+ const icon = wrapper.find('ActionAndroid');
+ assert.strictEqual(icon.prop('color'), color, 'icon should have same color as that of color prop');
+ });
+
it('colors the button the secondary theme color', () => {
const wrapper = shallowWithContext(
}>Button