Commit dc6c7833 authored by JC Brand's avatar JC Brand

Bugfix in tests, make sure message counter is cleared

parent b3ed43c4
......@@ -553,6 +553,10 @@
}, converse));
describe("A Message Counter", $.proxy(function () {
beforeEach($.proxy(function () {
converse.clearMsgCounter();
}, converse));
it("is incremented when the message is received and the window is not focused", $.proxy(function () {
expect(this.msg_counter).toBe(0);
spyOn(converse, 'incrementMsgCounter').andCallThrough();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment