<commit_before>var expect = chai.expect;

beforeEach(function(done) {
    setTimeout(function() {
        $('container').width(800).height(600);
        //$(document).width(800).height(600);
        done();
    }, 25);
});

describe('Creating a simple Messi window', function() {

    it('should be ready', function() {
        expect($.Messi).to.be.a('function');
    });

    it('should open and close', function() {
        expect($('.messi:visible').get(0)).to.be.undefined;
        var dialog = new $.Messi('my message');
        expect($('.messi:visible').get(0)).to.be.ok;
        dialog.unload();
        expect($('.messi:visible').get(0)).to.be.undefined;
    });

    it('should show "my message"', function() {
        var dialog = new $.Messi('my message');<commit_msg>Second attempt to fix the tests.<commit_after>var expect = chai.expect;

beforeEach(function(done) {
    setTimeout(function() {
        $('container').width(800).height(600);
        //$(document).width(800).height(600);
        done();
    }, 25);
});

describe('Creating a simple Messi window', function() {

    it('should be ready', function() {
        expect($.Messi).to.be.a('function');
    });

    it('should open and close', function() {
        //expect($('.messi:visible').get(0)).to.be.undefined;
        var dialog = new $.Messi('my message');
        expect($('.messi:visible').get(0)).to.be.ok;
        dialog.unload();
        expect($('.messi:visible').get(0)).to.be.undefined;
    });

    it('should show "my message"', function() {
        var dialog = new $.Messi('my message');
{'fraction_non_alphanumeric': 0.20909665192672142, 'fraction_numerical': 0.02147820593809223, 'mean_word_length': 2.911111111111111, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3568966', 'n_tokens_mistral': 525, 'n_tokens_neox': 484, 'n_words': 92}