/** @overview nodeunit test case. */

var testResource = require('../../../test_resource'),
    mockReq = testResource.requireMockModule('mock_modules/mock_req'),
    mockRes = testResource.requireMockModule('mock_modules/mock_res'),
    mockContext = testResource.requireMockModule('mock_modules/mock_context'),
    defineErrorLogMiddleware = require('../../../../serverside/middleware/define_error_log_middleware.js');

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

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


exports['Define error log middleware.'] = function (test) {
    var middleware = defineErrorLogMiddleware(mockContext({
        ERROR_LOG_PATH: testResource.resolveWorkFile('work-error-log')
    }));
    test.ok(middleware);
    test.done();
};