Skip to content

Commit b878753

Browse files
committed
chore: wip
1 parent 4b51126 commit b878753

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

test/composer-parser.test.ts

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { describe, expect, it, beforeEach, afterEach, spyOn } from 'bun:test'
1+
import { describe, expect, it, spyOn } from 'bun:test'
22
import {
33
generateComposerUpdates,
44
isComposerFile,
@@ -255,7 +255,8 @@ describe('Composer Parser', () => {
255255
expect(updatedContent).toContain('^10.16.0') // laravel/framework updated
256256
expect(updatedContent).toContain('^10.3.0') // phpunit/phpunit updated
257257
expect(updatedContent).toContain('^6.0.0') // symfony/console unchanged
258-
} finally {
258+
}
259+
finally {
259260
readFileSpy.mockRestore()
260261
}
261262
})
@@ -292,7 +293,8 @@ describe('Composer Parser', () => {
292293

293294
expect(updatedContent).toContain('~10.16.0') // Preserves ~ constraint
294295
expect(updatedContent).toContain('>=6.3.0,<7.0') // Preserves complex constraint
295-
} finally {
296+
}
297+
finally {
296298
readFileSpy.mockRestore()
297299
}
298300
})
@@ -335,7 +337,8 @@ describe('Composer Parser', () => {
335337
const updatedContent = result[0].content
336338
expect(updatedContent).toContain('"laravel/framework": "^10.0.0"') // Original content preserved
337339
expect(updatedContent).not.toContain('non-existent/package')
338-
} finally {
340+
}
341+
finally {
339342
readFileSpy.mockRestore()
340343
}
341344
})

0 commit comments

Comments
 (0)