fix: failing test on node v6

This commit is contained in:
Gareth Jones 2019-05-02 08:35:26 +10:00
parent a5502e6689
commit e6f9f28830

View File

@ -297,6 +297,11 @@ test('log4js configuration validation', (batch) => {
sandboxConfig.requires[
`${path.join(mainPath, '../../node_modules/nyc/bin/cheese')}`
] = testAppender('correct', result);
// in node v6, there's an extra layer of node modules for some reason, so add this one to work around it
sandboxConfig.requires[
`${path.join(mainPath, '../../node_modules/tap/node_modules/nyc/bin/cheese')}`
] = testAppender('correct', result);
const sandboxedLog4js = sandbox.require('../../lib/log4js', sandboxConfig);
sandboxedLog4js.configure({