Example #1
0
    it("should get comment counts from ajax end-point", function (done) {
        mediator.once('modules:commentcount:loaded', function () {
            done();
        });

        commentCount.init();
    });
Example #2
0
    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();
    });