/** @overview nodeunit test case. */

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

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

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

exports['Do copy files.'] = function (test) {
    var src = testResource.resolveMockFile('mock_files/mock_txt.txt'),
        dest = testResource.resolveWorkFile('work_prototype_copy_file.txt');
    copyPrototypeFiles._doCopy(src, dest, function (err) {
        test.ifError(err);
        test.done();
    });
};

exports['Copy prototype files.'] = function (test) {
    test.ok(copyPrototypeFiles);
    test.done();
};