Skip to content

Commit 27fd252

Browse files
committed
test(integration): reversed the list of commits to align with conventional-changelog expectations
based on conventional-changelog/conventional-changelog#1121 (comment). however, assuming the previous order actually aligned with how core provides the list, this will need to be coordinated with reversing that list somewhere
1 parent f3b88d3 commit 27fd252

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/integration.test.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -99,14 +99,14 @@ test('Accept a partial "parseOpts" object as option', async (t) => {
9999

100100
test("Exclude commits if they have a matching revert commits", async (t) => {
101101
const commits = [
102-
{ hash: "123", message: "feat(scope): First feature" },
103-
{ hash: "456", message: "revert: feat(scope): First feature\n\nThis reverts commit 123.\n" },
104102
{ message: "fix(scope): First fix" },
103+
{ hash: "456", message: "revert: feat(scope): First feature\n\nThis reverts commit 123.\n" },
104+
{ hash: "123", message: "feat(scope): First feature" },
105105
];
106106
const releaseType = await analyzeCommits({}, { cwd, commits, logger: t.context.logger });
107107

108108
t.is(releaseType, "patch");
109-
t.true(t.context.log.calledWith("Analyzing commit: %s", commits[2].message));
109+
t.true(t.context.log.calledWith("Analyzing commit: %s", commits[0].message));
110110
t.true(t.context.log.calledWith("The release type for the commit is %s", "patch"));
111111
t.true(t.context.log.calledWith("Analysis of %s commits complete: %s release", 3, "patch"));
112112
});

0 commit comments

Comments
 (0)