-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add test-case for fixed rename handling
- Loading branch information
John van Leeuwen
committed
Sep 30, 2024
1 parent
15d2e7c
commit 7765af7
Showing
3 changed files
with
16 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -74,6 +74,7 @@ const logWithRenames = `"John Doe <[email protected]>,${today.toISOString()}" | |
"Jane Doe <[email protected]>,${today.toISOString()}" | ||
10\t0\t/shell/my.component.ts | ||
0\t1\t/shell/my-other.component.ts | ||
20\t1\t/shared/feature-checkin/my.component.ts | ||
`; | ||
|
||
jest.mock('../infrastructure/log'); | ||
|
@@ -506,6 +507,11 @@ describe('git parser', () => { | |
linesRemoved: 1, | ||
path: '/shell/my-other.component.ts', | ||
}, | ||
{ | ||
linesAdded: 20, | ||
linesRemoved: 1, | ||
path: '/shared/sub-features/feature-checkin/my.component.ts', | ||
}, | ||
], | ||
}, | ||
]); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters