Skip to content

Commit 2c8639a

Browse files
committed
fix(test): resolve lint issues in dlx tests
- Remove unused dlxDir variables in clearDlx tests - Fix long line formatting in isInSocketDlx test
1 parent e2648ab commit 2c8639a

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

test/unit/dlx.test.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,12 @@ describe.sequential('dlx', () => {
205205

206206
describe('isInSocketDlx', () => {
207207
it('should return true for paths within DLX directory', () => {
208-
const dlxPath = path.join(getSocketDlxDir(), 'some-package', 'bin', 'binary')
208+
const dlxPath = path.join(
209+
getSocketDlxDir(),
210+
'some-package',
211+
'bin',
212+
'binary',
213+
)
209214
expect(isInSocketDlx(dlxPath)).toBe(true)
210215
})
211216

@@ -360,7 +365,6 @@ describe.sequential('dlx', () => {
360365

361366
it('should not throw when DLX directory does not exist', async () => {
362367
// Ensure directory doesn't exist
363-
const dlxDir = getSocketDlxDir()
364368
if (fs.existsSync(getSocketDlxDir())) {
365369
fs.rmSync(getSocketDlxDir(), { recursive: true, force: true })
366370
}
@@ -387,7 +391,6 @@ describe.sequential('dlx', () => {
387391

388392
it('sync version should not throw when DLX directory does not exist', () => {
389393
// Ensure directory doesn't exist
390-
const dlxDir = getSocketDlxDir()
391394
if (fs.existsSync(getSocketDlxDir())) {
392395
fs.rmSync(getSocketDlxDir(), { recursive: true, force: true })
393396
}

0 commit comments

Comments
 (0)