From 1b6254880cac8c2dce3767801fb424ad809c2915 Mon Sep 17 00:00:00 2001 From: Matt Travi Date: Sun, 13 Nov 2022 00:43:46 -0600 Subject: [PATCH] test: aligned pluginName with naming for functions --- test/fixtures/plugin-noop.cjs | 4 +++- test/index.test.js | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/test/fixtures/plugin-noop.cjs b/test/fixtures/plugin-noop.cjs index cc40a4649c..31c2593758 100644 --- a/test/fixtures/plugin-noop.cjs +++ b/test/fixtures/plugin-noop.cjs @@ -1 +1,3 @@ -module.exports = () => {}; +module.exports = function noop() { + +}; diff --git a/test/index.test.js b/test/index.test.js index 939ec7c3fa..bb5f48e76e 100644 --- a/test/index.test.js +++ b/test/index.test.js @@ -139,7 +139,7 @@ test('Plugins are called with expected values', async (t) => { pluginName: '[Function: functionStub]', }, {...nextRelease, ...release2, notes: `${notes1}\n\n${notes2}\n\n${notes3}`, pluginName: '[Function: functionStub]'}, - {...nextRelease, notes: `${notes1}\n\n${notes2}\n\n${notes3}`, pluginName: pluginNoop}, + {...nextRelease, notes: `${notes1}\n\n${notes2}\n\n${notes3}`, pluginName: '[Function: noop]'}, ]; await td.replaceEsm('../lib/get-logger.js', null, () => t.context.logger);