Skip to content

Commit 8d4f3c0

Browse files
committed
Fix tests
1 parent db568b4 commit 8d4f3c0

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

src/index.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -108,11 +108,6 @@ function parseGitPatch(patch: string) {
108108
lineNumber: nB,
109109
line: line.substring(1),
110110
})
111-
112-
if (line.substring(1) === ' this.#path,') {
113-
console.log('nB', nB)
114-
console.log(fileData.modifiedLines[fileData.modifiedLines.length - 1])
115-
}
116111
}
117112
else if (line.startsWith('-')) {
118113
nB--

test/index.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ test('parses a simple patch', () => {
6565
})
6666
})
6767

68-
test.only('parses a complex patch', () => {
68+
test('parses a complex patch', () => {
6969
const result = parse(data['many-files.patch'])
7070

7171
expect(result).toEqual({
@@ -140,7 +140,7 @@ test.only('parses a complex patch', () => {
140140
{
141141
added: false,
142142
line: ' constructor(request, stage) {',
143-
lineNumber: 232,
143+
lineNumber: 22,
144144
},
145145
{
146146
added: true,

0 commit comments

Comments
 (0)