Skip to content

Commit

Permalink
chore: update test
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed May 9, 2022
1 parent 728bfba commit 849e8c9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/search.test.ts
@@ -1,13 +1,13 @@
import path from 'pathe'
import { relative, resolve } from 'pathe'
import { describe, expect, it } from 'vitest'
import { Context } from '../src/core/context'

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

function cleanup(data: any) {
return Object.values(data).map((e: any) => {
delete e.absolute
e.from = path.relative(root, e.from).replace(/\\/g, '/')
e.from = relative(root, e.from).replace(/\\/g, '/')
return e
}).sort((a, b) => (a.as as string).localeCompare(b.as))
}
Expand Down

0 comments on commit 849e8c9

Please sign in to comment.