/** @overview nodeunit test case. */

var testResource = require('../../../test_resource'),
    _newRenderData = require('../../../../ci/worker/_new_render_data.js');


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

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


exports['New render data.'] = function (test) {
    var data = _newRenderData({foo: 'bar'});
    test.ok(data);
    test.equal(data.foo, 'bar');
    test.equal(data.$currentYear$, new Date().getFullYear());
    test.equal(data.$currentMonth$, new Date().getMonth());
    test.equal(data.$currentDate$, new Date().getDate());
    test.done();
};