aboutsummaryrefslogtreecommitdiff
path: root/vnext/src/components
diff options
context:
space:
mode:
Diffstat (limited to 'vnext/src/components')
-rw-r--r--vnext/src/components/__tests__/MessageInput-test.js12
1 files changed, 9 insertions, 3 deletions
diff --git a/vnext/src/components/__tests__/MessageInput-test.js b/vnext/src/components/__tests__/MessageInput-test.js
index 1cf89ebf..c26d622c 100644
--- a/vnext/src/components/__tests__/MessageInput-test.js
+++ b/vnext/src/components/__tests__/MessageInput-test.js
@@ -5,6 +5,12 @@ import Adapter from 'enzyme-adapter-react-16';
import MessageInput from '../MessageInput';
+// Remove when it will be fixed: https://github.com/airbnb/enzyme/issues/1875
+jest.mock('react', () => {
+ const r = jest.requireActual('react');
+ return { ...r, memo: (x) => x };
+});
+
configure({ adapter: new Adapter() });
const testMessage = {
@@ -16,9 +22,9 @@ const testMessage = {
window.matchMedia = window.matchMedia || function() {
return {
- matches : false,
- addListener : function() {},
- removeListener: function() {}
+ matches: false,
+ addListener: function() { },
+ removeListener: function() { }
};
};