/** @overview nodeunit test case. */

var testResource = require('../../../test_resource'),
    generateThemeStartupImageFiles = require('../../../../task/worker/generate_theme_startup_image_files.js');

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

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

exports['Name file.'] = function (test) {
    var name = generateThemeStartupImageFiles._nameStartupImageFile('a', 100, 100);
    test.ok(name);
    test.done();
};

exports['Get image data.'] = function (test) {
    var data = generateThemeStartupImageFiles._startupImageData([], 16, 2);
    test.ok(data);
    test.done();
};

//Disable test because node-canvas , used in text2image is not on dependencies.
//
//exports['Generate theme startup image files.'] = function (test) {
//    var destDir = testResource.resolveWorkFile('work_startup_images');
//    testResource.prepareCleanWorkDir(destDir, function () {
//        generateThemeStartupImageFiles({
//            destDir: destDir,
//            count: 2
//        }, function (err) {
//            test.ifError(err);
//            test.done();
//        });
//    });
//};