Skip to content

Commit 3129e6a

Browse files
committed
fix: getDiff test
1 parent 92e5a74 commit 3129e6a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/processors/getDiff.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ describe('getDiff', () => {
9595

9696
const result = await exec({}, action);
9797
expect(result.steps[0].error).to.be.true;
98-
expect(result.steps[0].errorMessage).to.contain('No commit data found');
98+
expect(result.steps[0].errorMessage).to.contain('Your push has been blocked because no commit data was found');
9999
});
100100

101101
it('should throw an error if no commit data is provided', async () => {
@@ -114,7 +114,7 @@ describe('getDiff', () => {
114114

115115
const result = await exec({}, action);
116116
expect(result.steps[0].error).to.be.true;
117-
expect(result.steps[0].errorMessage).to.contain('No commit data found');
117+
expect(result.steps[0].errorMessage).to.contain('Your push has been blocked because no commit data was found');
118118
});
119119

120120
it('should handle empty commit hash in commitFrom', async () => {

0 commit comments

Comments
 (0)