Skip to content

Commit

Permalink
test(cli): normalize difference between node console.log
Browse files Browse the repository at this point in the history
  • Loading branch information
armano2 committed Jan 6, 2021
1 parent cb10049 commit e61fc35
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion @commitlint/cli/src/cli.test.ts
Expand Up @@ -479,7 +479,11 @@ test('should print version', async () => {
test('should print config', async () => {
const cwd = await gitBootstrap('fixtures/default');
const actual = await cli(['--print-config', '--no-color'], {cwd})();
expect(actual.stdout).toMatchInlineSnapshot(`
const stdout = actual.stdout
.replace(/^{[^\n]/g, '{\n ')
.replace(/[^\n]}$/g, '\n}')
.replace(/(helpUrl:)\n[ ]+/, '$1 ');
expect(stdout).toMatchInlineSnapshot(`
"{
extends: [],
formatter: '@commitlint/format',
Expand Down

0 comments on commit e61fc35

Please sign in to comment.