var testResource = require('../../../test_resource'),
    minifyCssFiles = require('../../../../task/worker/minify_css_files.js');

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

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


exports['Minify css files.'] = function (test) {
    var workDir = testResource.resolveWorkFile('work_minify_css_files');
    testResource.prepareCleanWorkDir(workDir, function () {
        minifyCssFiles({
            srcDir: testResource.resolveMockFile('.'),
            pattern: '*.css',
            ignore: '*.min.css',
            destDir: workDir
        }, function (err) {
            test.ifError(err);
            test.done();
        });
    });
};