Skip to content

Commit

Permalink
Fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
rush committed Feb 14, 2024
1 parent d33ce7a commit 13d09b8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
5 changes: 2 additions & 3 deletions test/is-file-exist.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// test/index.test.ts
import path from 'node:path'
import { describe, expect, it } from 'vitest'
import { isFileExist } from '../src/utils/is-file-exist'
import path from 'node:path'

describe('isFileExist', () => {
it('should return true for an existing file', async () => {
Expand All @@ -15,4 +14,4 @@ describe('isFileExist', () => {
const result = await isFileExist(filePath)
expect(result).toBe(false)
})
})
})
7 changes: 3 additions & 4 deletions test/list-files.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// test/index.test.ts
import { describe, expect, it } from 'vitest'
import path from 'node:path'
import { listFiles } from '../src/utils/list-files';
import { describe, expect, it } from 'vitest'
import { listFiles } from '../src/utils/list-files'

describe('listFiles', () => {
it('should return an empty array for an empty directory', async () => {
Expand All @@ -27,4 +26,4 @@ describe('listFiles', () => {
const result = await listFiles(testDirectory)
expect(result).not.toContain('auth.recover/index.tsx')
})
})
})

0 comments on commit 13d09b8

Please sign in to comment.