<commit_before>var expect = require('chai').expect;
var markoWidgets = require('marko/widgets');

module.exports = function(helpers, done) {
    var template = require('./template.marko');

    template.renderToString({}, function(err, html, out) {
		var renderedWidgets = markoWidgets.getRenderedWidgets(out);
        expect(renderedWidgets).to.be.an('array');
        expect(renderedWidgets.length).to.equal(3);
        expect(renderedWidgets[0].id).to.equal('w0-w0');
        expect(renderedWidgets[1].id).to.equal('w0-w1');
        expect(renderedWidgets[2].id).to.equal('w0');
        done();
	});
};<commit_msg>Fixed broken test related to widget serialization changes<commit_after>var expect = require('chai').expect;
var markoWidgets = require('marko/widgets');

module.exports = function(helpers, done) {
    var template = require('./template.marko');

    template.renderToString({}, function(err, html, out) {
		var renderedWidgets = markoWidgets.getRenderedWidgets(out);
        expect(renderedWidgets).to.be.an('array');

        expect(renderedWidgets.length).to.equal(2);

        var widgetDefs = renderedWidgets[0];
        expect(widgetDefs.length).to.equal(3);

        expect(widgetDefs[0][0]).to.equal('w0-w0');
        expect(widgetDefs[1][0]).to.equal('w0-w1');
        expect(widgetDefs[2][0]).to.equal('w0');
        done();
	});
};
{'fraction_non_alphanumeric': 0.17452135493372606, 'fraction_numerical': 0.016936671575846832, 'mean_word_length': 4.033333333333333, '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': '6740470', 'n_tokens_mistral': 450, 'n_tokens_neox': 435, 'n_words': 61}