diff --git a/browser/components/loop/test/desktop-local/conversationViews_test.js b/browser/components/loop/test/desktop-local/conversationViews_test.js index 08b6da245c5..82b90c8a068 100644 --- a/browser/components/loop/test/desktop-local/conversationViews_test.js +++ b/browser/components/loop/test/desktop-local/conversationViews_test.js @@ -102,8 +102,13 @@ describe("loop.conversationViews", function () { sdkDriver: {} }); + var textChatStore = new loop.store.TextChatStore(dispatcher, { + sdkDriver: {} + }); + loop.store.StoreMixin.register({ - conversationStore: conversationStore + conversationStore: conversationStore, + textChatStore: textChatStore }); }); diff --git a/browser/components/loop/test/shared/mixins_test.js b/browser/components/loop/test/shared/mixins_test.js index 700bdf5d781..dec16c7f62f 100644 --- a/browser/components/loop/test/shared/mixins_test.js +++ b/browser/components/loop/test/shared/mixins_test.js @@ -227,9 +227,9 @@ describe("loop.shared.mixins", function() { sandbox.stub(view, "getDOMNode").returns({ querySelector: function(classSelector) { - if (classSelector.includes("local")) { + if (classSelector.indexOf("local") > -1) { return localElement; - } else if (classSelector.includes("screen")) { + } else if (classSelector.indexOf("screen") > -1) { return screenShareElement; } return remoteElement;