/** @overview nodeunit test case. */

var testResource = require('../../../test_resource'),
    generateConstantsJson = require('../../../../task/worker/generate_constants_json.js');

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

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


exports['Generate constants json.'] = function (test) {
    generateConstantsJson({
        dest: testResource.resolveWorkFile('work-constants.json'),
        data: {
            logDir: 'var/log',
            accessLog: '#{logDir}/access.log'
        }
    }, function (err) {
        test.ifError(err);
        test.done();
    });
};