فهرست منبع

Bugfix in tests, make sure message counter is cleared

JC Brand 12 سال پیش
والد
کامیت
dc6c78331f
1فایلهای تغییر یافته به همراه4 افزوده شده و 0 حذف شده
  1. 4 0
      spec/MainSpec.js

+ 4 - 0
spec/MainSpec.js

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