var expect = chai.expect;

describe("modalHTML", function() {
    it("should be available", function() {
        expect(modalHTML).to.have.length.above(0);
    });
});

describe("Modal", function() {
    beforeEach(function() {
        modal = undefined;
        $("#gentle-alerts-modal").remove();
    });
    it("can be initialized", function() {
        var modal = new Modal();
        expect(modal.msgQueue).to.have.lengthOf(0);
        expect(modal.modalElement).to.be.undefined;
    });
});

@@ -479,20 +479,735 @@
 efined;%0A    %7D);%0A%7D);%0A
+%0Adescribe(%22alert%22, function() %7B%0A    beforeEach(function() %7B%0A        modal = undefined;%0A        $(%22#gentle-alerts-modal%22).remove();%0A    %7D);%0A    it(%22can show modal%22, function() %7B%0A        alert(%22alert text%22);%0A        expect($(%22#gentle-alerts-modal-content-text%22).length).to.equal(1);%0A        expect($(%22#gentle-alerts-modal-content-text%22).text()).to.equal(%22alert text%22);%0A    %7D);%0A    it(%22can hide the modal%22, function(done) %7B%0A        alert(%22alert text%22);%0A        $.when($(%22#gentle-alerts-modal%22).trigger(%22click%22)).done(function()%7B%0A            expect($(%22#gentle-alerts-modal-content-text%22).length).to.equal(0);%0A            expect($(%22#gentle-alerts-modal%22).length).to.equal(0);%0A            done();%0A        %7D);%0A    %7D);%0A%7D);%0A

Add behavior tests for modal