var fs = require('fs'),
    testResource = require('../../../test_resource'),
    generateStyleguide = require('../../../../task/worker/generate_styleguide');

exports.setUp = function (done) {
    process.env.TASK_LOG_DISABLED = true;
    done();
};

exports.tearDown = function (done) {
    process.env.TASK_LOG_DISABLED = false;
    done();
};


exports['Get new file name.'] = function (test) {
    generateStyleguide._newFilename(__filename, function (filename) {
        test.notEqual(filename, __filename);
        test.done();
    });

};
exports['Prepare styleguide template'] = function (test) {
    generateStyleguide._prepareStyleguideTmpl(function (err, tmplPath) {
        test.ifError(err);
        test.ok(tmplPath);
        test.done();
    });
};

exports['Prepare styleguide work directory.'] = function (test) {
    generateStyleguide._prepareStyleguideWorkDir(function (err) {
        test.ifError(err);
        test.done();
    });
};
