mirror of
https://github.com/hanzoai/vite.git
synced 2026-10-30 19:36:16 +00:00
10 lines
275 B
TypeScript
10 lines
275 B
TypeScript
import { expect, test } from 'vitest'
|
|
import { getBg, isBuild, page, viteTestUrl } from '~utils'
|
|
|
|
test('url dependency', async () => {
|
|
const css = await page.$('.url-dep')
|
|
expect(await getBg(css)).toMatch(
|
|
isBuild ? /ok-[-\w]+\.png/ : `${viteTestUrl}/ok.png`,
|
|
)
|
|
})
|