Skip to content

Commit ec2618f

Browse files
committed
test: update snapshot
1 parent 7c20c8d commit ec2618f

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

test/contributors.test.ts

+8-6
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,15 @@ import { testCommits } from "./fixtures/commits";
55
describe("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

0 commit comments

Comments
 (0)