/** @overview nodeunit test case. */

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

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

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


exports['Inherit prototype files.'] = function (test) {
    _inheritPrototypeFiles({
        prototypeBaseDir: testResource.resolveMockFile('mock_modules'),
        destDir: testResource.resolveWorkFile('.')
    }, function (src, dest, callback) {
        callback();
    }, function (err) {
        test.ifError(err);
        test.done();
    });
};