File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,14 +5,15 @@ import { testCommits } from "./fixtures/commits";
55describe ( "contributors" , ( ) => {
66 test ( "should include authors" , async ( ) => {
77 const config = await loadChangelogConfig ( process . cwd ( ) , {
8- newVersion : "1.0.0" ,
8+ from : "1.0.0" ,
9+ newVersion : "2.0.0" ,
910 } ) ;
1011 const contents = await generateMarkDown ( testCommits , config ) ;
1112
1213 expect ( contents ) . toMatchInlineSnapshot ( `
13- "## v1 .0.0
14+ "## v2 .0.0
1415
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)
1617
1718 ### 🚀 Enhancements
1819
@@ -41,15 +42,16 @@ describe("contributors", () => {
4142
4243 test ( "should skip authors with noAuthors config" , async ( ) => {
4344 const config = await loadChangelogConfig ( process . cwd ( ) , {
44- newVersion : "1.0.0" ,
45+ from : "1.0.0" ,
46+ newVersion : "2.0.0" ,
4547 noAuthors : true ,
4648 } ) ;
4749 const contents = await generateMarkDown ( testCommits , config ) ;
4850
4951 expect ( contents ) . toMatchInlineSnapshot ( `
50- "## v1 .0.0
52+ "## v2 .0.0
5153
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)
5355
5456 ### 🚀 Enhancements
5557
You can’t perform that action at this time.
0 commit comments