Skip to content

Commit

Permalink
tests: fix utils test
Browse files Browse the repository at this point in the history
  • Loading branch information
yjhtry committed Feb 4, 2024
1 parent e2595ed commit cb5b7a7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/utils.test.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import path from 'node:path'
import { promises as fsp } from 'node:fs'
import { describe, expect, it } from 'vitest'
import { mvFiles, resolveProjectPath } from '../src/utils'

describe('utils mod', () => {
it('should word resolveLocalPath', () => {
expect(resolveProjectPath('test')).toEqual('/Users/yjh/oss/create-all/test')
expect(resolveProjectPath('test')).toEqual(path.join(process.cwd(), 'test'))
})

it('should word mvFiles', async () => {
Expand Down

0 comments on commit cb5b7a7

Please sign in to comment.