Commit 6d1845e4 authored by Robert Knight's avatar Robert Knight

Remove propTypes forwarding on `mockImportedComponents`

Components no longer have a `propTypes` property.
parent 14d75c42
...@@ -72,9 +72,6 @@ export default function mockImportedComponents() { ...@@ -72,9 +72,6 @@ export default function mockImportedComponents() {
// is an Enzyme wrapper. // is an Enzyme wrapper.
mock.displayName = getDisplayName(value); mock.displayName = getDisplayName(value);
// Mocked components validate props in the same way as the real component.
mock.propTypes = value.propTypes;
return mock; return mock;
}; };
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment