You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
it('does not generate text if there is no commits',()=>{
368
+
expect(
369
+
getSkippedCommitsText({
370
+
commitsWithoutLanguageScope: [],
371
+
commitsWithUnknownLanguageScope: [],
372
+
})
373
+
).toMatchInlineSnapshot(`"_(None)_"`);
374
+
});
380
375
381
-
commitsWithUnknownLanguageScope: [
382
-
'abcdef2 fix(pascal): what',
383
-
'abcdef2 fix(pascal): what is that',
384
-
],
385
-
})
386
-
).toMatchInlineSnapshot(`
387
-
"</p>
388
-
<p>It doesn't mean these commits are being excluded from the release. It means they're not taken into account when the release process figured out the next version number, and updated the changelog.</p>
389
-
390
-
<details>
391
-
<summary>
392
-
<i>Commits without language scope:</i>
393
-
</summary>
394
-
395
-
- abcdefg fix: something
396
-
- abcdefg fix: somethin2
397
-
</details>
398
-
399
-
<details>
400
-
<summary>
401
-
<i>Commits with unknown language scope:</i>
402
-
</summary>
403
-
404
-
- abcdef2 fix(pascal): what
405
-
- abcdef2 fix(pascal): what is that
406
-
</details>"
407
-
`);
376
+
it('generates text for skipped commits',()=>{
377
+
expect(
378
+
getSkippedCommitsText({
379
+
commitsWithoutLanguageScope: [
380
+
'abcdefg fix: something',
381
+
'abcdefg fix: somethin2',
382
+
],
383
+
384
+
commitsWithUnknownLanguageScope: [
385
+
'abcdef2 fix(pascal): what',
386
+
'abcdef2 fix(pascal): what is that',
387
+
],
388
+
})
389
+
).toMatchInlineSnapshot(`
390
+
"
391
+
<p>It doesn't mean these commits are being excluded from the release. It means they're not taken into account when the release process figured out the next version number, and updated the changelog.</p>
392
+
393
+
<details>
394
+
<summary>
395
+
<i>Commits without language scope:</i>
396
+
</summary>
397
+
398
+
- abcdefg fix: something
399
+
- abcdefg fix: somethin2
400
+
</details>
401
+
402
+
<details>
403
+
<summary>
404
+
<i>Commits with unknown language scope:</i>
405
+
</summary>
406
+
407
+
- abcdef2 fix(pascal): what
408
+
- abcdef2 fix(pascal): what is that
409
+
</details>"
410
+
`);
411
+
});
412
+
413
+
it('limits the size of the commits to 15 if there is too many',()=>{
<p>It doesn't mean these commits are being excluded from the release. It means they're not taken into account when the release process figured out the next version number, and updated the changelog.</p>
0 commit comments