Skip to content

Commit 6d2dc90

Browse files
committed
style: biome check --fix 整形 launchAutofixPr.test 新增段
1 parent 802ef53 commit 6d2dc90

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

src/commands/autofix-pr/__tests__/launchAutofixPr.test.ts

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -536,9 +536,7 @@ describe('callAutofixPr · Phase 2 completionChecker integration', () => {
536536
describe('callAutofixPr · Phase 2 completionChecker arrow body', () => {
537537
// Pull the most recent registered checker — beforeAll registers once at
538538
// module load; nothing else re-registers across this file's tests.
539-
function getChecker(): (
540-
metadata?: unknown,
541-
) => Promise<string | null> {
539+
function getChecker(): (metadata?: unknown) => Promise<string | null> {
542540
const calls = registerCompletionCheckerMock.mock.calls.filter(
543541
c => c[0] === 'autofix-pr',
544542
)
@@ -585,16 +583,16 @@ describe('callAutofixPr · Phase 2 completionChecker arrow body', () => {
585583
repo: 'myrepo',
586584
prNumber: 1002,
587585
})
588-
expect(result).toBe(
589-
'acme/myrepo#1002 merged. Autofix monitoring complete.',
590-
)
586+
expect(result).toBe('acme/myrepo#1002 merged. Autofix monitoring complete.')
591587
})
592588

593589
test('passes initialHeadSha through to checkPrAutofixOutcome', async () => {
594590
const { checkPrAutofixOutcome } = await import('../prFetch.js')
595591
const checkMock = checkPrAutofixOutcome as ReturnType<typeof mock>
596592
checkMock.mockClear()
597-
checkMock.mockImplementationOnce(() => Promise.resolve({ completed: false }))
593+
checkMock.mockImplementationOnce(() =>
594+
Promise.resolve({ completed: false }),
595+
)
598596
const checker = getChecker()
599597
await checker({
600598
owner: 'acme',

0 commit comments

Comments
 (0)