it("should get comment counts from ajax end-point", function (done) { mediator.once('modules:commentcount:loaded', function () { done(); }); commentCount.init(); });
it("should append comment counts to DOM", function (done) { mediator.once('modules:commentcount:loaded', function () { expect(qwery('.fc-trail__count--commentcount').length).toBe(3); done(); }); commentCount.init(); });