diff --git a/src/components/FormRow.js b/src/components/FormRow.js
index 7ecf6f07a..d375353a9 100644
--- a/src/components/FormRow.js
+++ b/src/components/FormRow.js
@@ -10,6 +10,7 @@ import Input from './Input';
import Label from './Label';
import RadioInput from './RadioInput';
import Row from './Row';
+import Required from './Required';
import StaticInput from './StaticInput';
const typeTranslations = {
@@ -69,7 +70,7 @@ const FormRow = (props) => {
{label && (
)}
diff --git a/src/components/Required.js b/src/components/Required.js
new file mode 100644
index 000000000..bb5b2fefd
--- /dev/null
+++ b/src/components/Required.js
@@ -0,0 +1,7 @@
+import React from 'react';
+
+const Required = () => (
+ *
+);
+
+export default Required;
diff --git a/test/components/FormRow.spec.js b/test/components/FormRow.spec.js
index 7a886ba83..54ec576d5 100644
--- a/test/components/FormRow.spec.js
+++ b/test/components/FormRow.spec.js
@@ -80,10 +80,9 @@ describe('', () => {
it('should show a star', () => {
const label = component.find(Label);
- const star = label.find('span');
+ const star = label.find('Required');
- assert.equal(star.hasClass('text-danger'), true);
- assert.equal(star.text(), ' *');
+ assert.equal(star.length, 1);
});
});