fix: do not clone stdout/stderr passed to pugins

This commit is contained in:
Pierre Vanduynslager
2018-08-04 20:33:26 -04:00
parent efb40000b4
commit 63d422ed5c
3 changed files with 12 additions and 5 deletions
+4 -1
View File
@@ -160,7 +160,10 @@ test('Plugin is called with "pluginConfig" (omitting "path", adding global confi
await plugin({param: 'param'});
t.true(
pluginFunction.calledWith({conf: 'confValue', global: 'globalValue'}, {param: 'param', logger: t.context.logger})
pluginFunction.calledWithMatch(
{conf: 'confValue', global: 'globalValue'},
{param: 'param', logger: t.context.logger}
)
);
});