File tree 1 file changed +8
-6
lines changed
1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -5,14 +5,15 @@ import { testCommits } from "./fixtures/commits";
5
5
describe ( "contributors" , ( ) => {
6
6
test ( "should include authors" , async ( ) => {
7
7
const config = await loadChangelogConfig ( process . cwd ( ) , {
8
- newVersion : "1.0.0" ,
8
+ from : "1.0.0" ,
9
+ newVersion : "2.0.0" ,
9
10
} ) ;
10
11
const contents = await generateMarkDown ( testCommits , config ) ;
11
12
12
13
expect ( contents ) . toMatchInlineSnapshot ( `
13
- "## v1 .0.0
14
+ "## v2 .0.0
14
15
15
- [compare changes](https://github.com/unjs/changelogen/compare/v0.5.7 ...v1 .0.0)
16
+ [compare changes](https://github.com/unjs/changelogen/compare/1.0.0 ...v2 .0.0)
16
17
17
18
### 🚀 Enhancements
18
19
@@ -41,15 +42,16 @@ describe("contributors", () => {
41
42
42
43
test ( "should skip authors with noAuthors config" , async ( ) => {
43
44
const config = await loadChangelogConfig ( process . cwd ( ) , {
44
- newVersion : "1.0.0" ,
45
+ from : "1.0.0" ,
46
+ newVersion : "2.0.0" ,
45
47
noAuthors : true ,
46
48
} ) ;
47
49
const contents = await generateMarkDown ( testCommits , config ) ;
48
50
49
51
expect ( contents ) . toMatchInlineSnapshot ( `
50
- "## v1 .0.0
52
+ "## v2 .0.0
51
53
52
- [compare changes](https://github.com/unjs/changelogen/compare/v0.5.7 ...v1 .0.0)
54
+ [compare changes](https://github.com/unjs/changelogen/compare/1.0.0 ...v2 .0.0)
53
55
54
56
### 🚀 Enhancements
55
57
You can’t perform that action at this time.
0 commit comments