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 4963d77
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion @commitlint/cli/src/cli.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,10 @@ 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$1')
.replace(/[^\n]}$/g, '\n}');
expect(stdout).toMatchInlineSnapshot(`
"{
extends: [],
formatter: '@commitlint/format',
Expand Down

0 comments on commit 4963d77

Please sign in to comment.