diff --git a/index.js b/index.js index 318e1755..6ff75f34 100644 --- a/index.js +++ b/index.js @@ -66,6 +66,9 @@ var parser = yargs var opts = parser.parse(); +// Set up event listeners for logging temporarily. +toConsole(log, opts); + cli.on('preload:before', function(name) { log.info('Preloading external module:', chalk.magenta(name)); }); diff --git a/test/config-description.js b/test/config-description.js index ac85fd70..2a185459 100644 --- a/test/config-description.js +++ b/test/config-description.js @@ -48,7 +48,7 @@ describe('config: description', function() { expect(err).toBeNull(); expect(stderr).toEqual(''); var expected = fs.readFileSync(path.join(expectedDir, 'output2.txt'), 'utf-8'); - expect(sliceLines(stdout, 1)).toEqual(expected); + expect(sliceLines(stdout, 2)).toEqual(expected); done(err); } });