Skip to content
This repository has been archived by the owner on Dec 4, 2017. It is now read-only.

Commit

Permalink
Added missing test.
Browse files Browse the repository at this point in the history
  • Loading branch information
n1k0 committed Apr 17, 2014
1 parent d6f8859 commit edd4d38
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/client-local/webapp_test.js
Expand Up @@ -109,6 +109,16 @@ describe("loop.webapp", function() {
sinon.assert.calledWith(router.loadView,
sinon.match.instanceOf(loop.webapp.ConversationFormView));
});

// https://bugzilla.mozilla.org/show_bug.cgi?id=991118
it("should terminate any ongoing call session", function() {
sinon.stub(conversation, "endSession");
conversation.set("ongoing", true);

router.initiate("fakeToken");

sinon.assert.calledOnce(conversation.endSession);
});
});

describe("#conversation", function() {
Expand Down

0 comments on commit edd4d38

Please sign in to comment.