Skip to content

Commit db211c9

Browse files
committed
Apply linter fixes to test files
Auto-formatted by biome: - Reordered imports alphabetically - Adjusted line wrapping for consistency
1 parent 36b9434 commit db211c9

File tree

2 files changed

+12
-9
lines changed

2 files changed

+12
-9
lines changed

src/commands/fix/branch-cleanup.integration.test.mts

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ import { promises as fs } from 'node:fs'
22
import { tmpdir } from 'node:os'
33
import path from 'node:path'
44

5-
import { describe, expect, it, beforeEach, afterEach } from 'vitest'
5+
import trash from 'trash'
6+
import { afterEach, beforeEach, describe, expect, it } from 'vitest'
67

78
import { spawn } from '@socketsecurity/registry/lib/spawn'
8-
import trash from 'trash'
99

1010
import {
1111
cleanupErrorBranches,
@@ -48,11 +48,10 @@ describe('branch-cleanup integration tests', () => {
4848
})
4949

5050
// Configure git user for commits.
51-
await spawn(
52-
'git',
53-
['config', 'user.email', 'test@socket-cli.test'],
54-
{ cwd: repoDir, stdio: 'ignore' },
55-
)
51+
await spawn('git', ['config', 'user.email', 'test@socket-cli.test'], {
52+
cwd: repoDir,
53+
stdio: 'ignore',
54+
})
5655
await spawn('git', ['config', 'user.name', 'Socket CLI Test'], {
5756
cwd: repoDir,
5857
stdio: 'ignore',
@@ -112,7 +111,11 @@ describe('branch-cleanup integration tests', () => {
112111
expect(existsBefore).toBe(true)
113112

114113
// Clean up stale branch.
115-
const result = await cleanupStaleBranch(branchName, 'GHSA-test-1', repoDir)
114+
const result = await cleanupStaleBranch(
115+
branchName,
116+
'GHSA-test-1',
117+
repoDir,
118+
)
116119

117120
expect(result).toBe(true)
118121

src/commands/fix/branch-cleanup.test.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { describe, expect, it, vi, beforeEach, afterEach } from 'vitest'
1+
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'
22

33
import {
44
cleanupErrorBranches,

0 commit comments

Comments
 (0)