mirror of
https://github.com/hanzoai/vitest.git
synced 2026-09-24 17:04:25 +00:00
10 lines
295 B
TypeScript
10 lines
295 B
TypeScript
import { test, expect } from 'vitest';
|
|
|
|
test('basic', async () => {
|
|
const div = document.createElement('div')
|
|
div.textContent = ' Vitest'
|
|
document.body.appendChild(div)
|
|
expect(document.body.textContent).toContain('HELLO WORLD')
|
|
expect(document.body.textContent).toContain('Vitest')
|
|
})
|