Bug 1189838 - Fix test coverage for Loop, r=dmose

This commit is contained in:
Andrei Oprea 2015-07-31 13:48:23 -07:00
parent 260ad0caa2
commit aa3ddc5ecf
2 changed files with 8 additions and 3 deletions

View File

@ -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
});
});

View File

@ -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;