/** @overview nodeunit test case. */

var testResource = require('../../../test_resource'),
    mockInjector = require('../../../mock_injector'),
    _writeUnitTestFile = require('../../../../ci/worker/_write_unit_test_file.js');

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

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


exports['Write unit test file.'] = function (test) {
    _writeUnitTestFile(
        testResource.resolveWorkFile('work_unit_test_file.js'),
        function () {
            return 'foo'
        },
        {},
        function (err) {
            test.ifError(err);
            test.done();
        }
    );
};