/** @overview nodeunit test case. */

var testResource = require('../../../test_resource'),
    _ensureThemeDataGuideIndex = require('../../../../task/worker/_ensure_theme_data_guide_index.js');

exports.setUp = function (done) {
    done();
};

exports.tearDown = function (done) {
    done();
};


exports['Ensure theme data guide index.'] = function (test) {
    var data = _ensureThemeDataGuideIndex([
        {},
        {guideIndex: 2},
        {guideIndex: 5},
        {}
    ]);
    data.forEach(function (data) {
        test.ok(data.guideIndex);
    });
    test.done();
};