mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 09:25:06 +03:00
21 lines
537 B
TypeScript
21 lines
537 B
TypeScript
import { screen } from '@testing-library/react'
|
|
import { expect, test } from 'vitest'
|
|
|
|
import LogsQueryPanel from 'components/interfaces/Settings/Logs/LogsQueryPanel'
|
|
import { render } from 'tests/helpers'
|
|
|
|
test('run and clear', async () => {
|
|
render(
|
|
<LogsQueryPanel
|
|
defaultFrom=""
|
|
defaultTo=""
|
|
onDateChange={() => {}}
|
|
onSelectSource={() => {}}
|
|
onSelectTemplate={() => {}}
|
|
warnings={[]}
|
|
templates={[]}
|
|
/>
|
|
)
|
|
await expect(screen.findByPlaceholderText(/Search/)).rejects.toThrow()
|
|
})
|