fix: set default path to generateNotes object config

This commit is contained in:
Pierre Vanduynslager
2018-07-10 15:50:24 -04:00
parent 24ce560065
commit d8e59cce53
2 changed files with 6 additions and 3 deletions
+3 -1
View File
@@ -117,13 +117,15 @@ test.serial('Export plugins loaded from the dependency of a shareable config fil
test('Use default when only options are passed for a single plugin', t => {
const analyzeCommits = {};
const generateNotes = {};
const success = () => {};
const fail = [() => {}];
const plugins = getPlugins({analyzeCommits, success, fail}, {}, t.context.logger);
const plugins = getPlugins({analyzeCommits, generateNotes, success, fail}, {}, t.context.logger);
// Verify the module returns a function for each plugin
t.is(typeof plugins.analyzeCommits, 'function');
t.is(typeof plugins.generateNotes, 'function');
t.is(typeof plugins.success, 'function');
t.is(typeof plugins.fail, 'function');