Skip to content

Commit

Permalink
Merge pull request #2610 from semantic-release/index-test
Browse files Browse the repository at this point in the history
  • Loading branch information
travi committed Nov 16, 2022
2 parents 78ea3ba + 1b62548 commit 0ab8d9a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion test/fixtures/plugin-noop.cjs
@@ -1 +1,3 @@
module.exports = () => {};
module.exports = function noop() {

};
2 changes: 1 addition & 1 deletion test/index.test.js
Expand Up @@ -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);
Expand Down

0 comments on commit 0ab8d9a

Please sign in to comment.