aboutsummaryrefslogtreecommitdiff
path: root/vnext/src/components/__tests__/MessageInput-test.js
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-08-24 17:27:09 +0300
committerGravatar Vitaly Takmazov2023-01-13 10:37:53 +0300
commit00d5a8dc3983b1b5911c7279394ebdac564a798e (patch)
tree501edf4dda5cf1ddbaa8023d2487e5d52928d14d /vnext/src/components/__tests__/MessageInput-test.js
parentaa52bb339a6016e8ed7833b9abaa4e0abb7f2351 (diff)
scroll fixes for mobile
Diffstat (limited to 'vnext/src/components/__tests__/MessageInput-test.js')
-rw-r--r--vnext/src/components/__tests__/MessageInput-test.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/vnext/src/components/__tests__/MessageInput-test.js b/vnext/src/components/__tests__/MessageInput-test.js
index 65ec383d..1cf89ebf 100644
--- a/vnext/src/components/__tests__/MessageInput-test.js
+++ b/vnext/src/components/__tests__/MessageInput-test.js
@@ -14,6 +14,14 @@ const testMessage = {
timestamp: new Date().toISOString()
};
+window.matchMedia = window.matchMedia || function() {
+ return {
+ matches : false,
+ addListener : function() {},
+ removeListener: function() {}
+ };
+};
+
it('Gives immediate focus on to textarea on load', () => {
const wrapper = mount(<MessageInput data={testMessage} onSend={() => { }} />);
const textareaRef = wrapper.instance().textarea;