var module = require(__filename.replace(/test/, 'src').replace(/-test.js$/, '.js'));


var options = {
    simulatorConfig: {
        port: 9000,
        rootPath: '../test/testFiles',
        useRootRelativePath: true
    },
    proxyConfig: {
        middleware: [
            function (req, res, next) {
                res.setHeader('ErrorCode', 100);
                next();
            },
            function (req, res, next) {
                next();
                res.setHeader('ErrorMessage', 'errorMessage');
            }
        ],
        port: 8000,
        options: {
            pathnameOnly: true,
            router: {
                '/service': '127.0.0.1:9000',
                '': '127.0.0.1:9001'
            }
        }
    },
    logLevel: 'info'
};

module(options);

var module = require(__filename.replace(/test/, 'src').replace(/-test.js$/, '.js'));


var options = {
    simulatorConfig: {
        port: 9000,
        rootPath: '../test/testFiles',
        useRootRelativePath: true
    },
    proxyConfig: {
        middleware: [
            function (req, res, next) {
                res.setHeader('ErrorCode', 100);
                next();
            },
            function (req, res, next) {
                next();
                res.setHeader('ErrorMessage', 'errorMessage');
            }
        ],
        port: 8000,
        options: {
            pathnameOnly: true,
            router: {
                '/service': '127.0.0.1:9000',
                '': '127.0.0.1:9001'
            }
        }
    },
    logLevel: 'debug'
};

module(options);

test fix