Skip to content

Commit ba45081

Browse files
committed
chore: resolve test error
1 parent 3a60a4b commit ba45081

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/pr-generator.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,9 @@ describe('PullRequestGenerator', () => {
494494

495495
describe('formatVersionChange', () => {
496496
// Access the private method for testing
497-
const formatVersionChange = (generator as any).formatVersionChange.bind(generator)
497+
const formatVersionChange = (currentVersion: string, newVersion: string) => {
498+
return (generator as any).formatVersionChange(currentVersion, newVersion)
499+
}
498500

499501
describe('constraint prefixes', () => {
500502
it('should preserve caret constraint prefix', () => {

0 commit comments

Comments
 (0)