diff --git a/tests/Element-spec.js b/tests/Element-spec.js
index 90be589..83acf34 100644
--- a/tests/Element-spec.js
+++ b/tests/Element-spec.js
@@ -295,6 +295,29 @@ export default {
},
+ 'should not override error messages with error messages passed by form if passed eror messages is an empty object': function (test) {
+
+ const TestForm = React.createClass({
+ render() {
+ return (
+
+
+
+ );
+ }
+ });
+ const form = TestUtils.renderIntoDocument();
+
+ const inputComponent = TestUtils.findRenderedComponentWithType(form, TestInput);
+ test.equal(inputComponent.getErrorMessage(), 'bar3');
+
+ test.done();
+
+ },
+
+
'should override all error messages with error messages passed by form': function (test) {
const TestForm = React.createClass({