/** @overview nodeunit test case. */

var testResource = require('../../../test_resource'),
    mockInjector = require('../../../mock_injector'),
    generateIndexFiles = require('../../../../ci/worker/generate_index_files.js');

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

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


exports['Generate index files.'] = function (test) {
    testResource.prepareCleanWorkDirForTestFile(__filename, function (err, workDir) {
        generateIndexFiles({
            dirs: [
                workDir
            ]
        }, function (err) {
            test.ifError(err);
            test.done();
        });
    });
};