Skip to content

Commit 849e8c9

Browse files
committed
chore: update test
1 parent 728bfba commit 849e8c9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/search.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
import path from 'pathe'
1+
import { relative, resolve } from 'pathe'
22
import { describe, expect, it } from 'vitest'
33
import { Context } from '../src/core/context'
44

5-
const root = path.resolve(__dirname, '../examples/vite-vue3')
5+
const root = resolve(__dirname, '../examples/vite-vue3')
66

77
function cleanup(data: any) {
88
return Object.values(data).map((e: any) => {
99
delete e.absolute
10-
e.from = path.relative(root, e.from).replace(/\\/g, '/')
10+
e.from = relative(root, e.from).replace(/\\/g, '/')
1111
return e
1212
}).sort((a, b) => (a.as as string).localeCompare(b.as))
1313
}

0 commit comments

Comments
 (0)