aboutsummaryrefslogtreecommitdiff
path: root/vnext/src/components/__tests__/MessageInput-test.js
diff options
context:
space:
mode:
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;