mirror of
https://github.com/vitest-dev/vitest.git
synced 2025-12-08 18:26:03 +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')
|
|
})
|