Skip to content

Commit 3c1b90a

Browse files
committed
test: adapt test to new report formatting
1 parent 1b178fa commit 3c1b90a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

@commitlint/cli/src/cli.test.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -284,13 +284,13 @@ test('should print full commit message when input from stdin fails', async t =>
284284
t.is(actual.code, 1);
285285
});
286286

287-
test('should not print full commit message when input succeeds', async t => {
287+
test('should not print commit message fully or partially when input succeeds', async t => {
288288
const cwd = await git.bootstrap('fixtures/default');
289289
const message = 'type: bar\n\nFoo bar bizz buzz.\n\nCloses #123.';
290290
const actual = await cli([], {cwd})(message);
291291

292292
t.false(actual.stdout.includes(message));
293-
t.true(actual.stdout.includes(message.split('\n')[0]));
293+
t.false(actual.stdout.includes(message.split('\n')[0]));
294294
t.is(actual.code, 0);
295295
});
296296

0 commit comments

Comments
 (0)