mirror of
https://github.com/supabase/supabase.git
synced 2026-05-07 17:30:25 -04:00
20 lines
553 B
TypeScript
20 lines
553 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
|
|
value={{ from: '', to: '', isHelper: false }}
|
|
onDateChange={() => {}}
|
|
onSelectSource={() => {}}
|
|
onSelectTemplate={() => {}}
|
|
warnings={[]}
|
|
templates={[]}
|
|
/>
|
|
)
|
|
await expect(screen.findByPlaceholderText(/Search/)).rejects.toThrow()
|
|
})
|