mirror of
https://github.com/supabase/supabase.git
synced 2026-10-08 02:45:07 +03:00
* Swap PATCH content to PUT * Fix tests * Swap create Logs Explorer query to use upsert content
26 lines
702 B
TypeScript
26 lines
702 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={[]}
|
|
warehouseCollections={[]}
|
|
dataSource="logs"
|
|
onDataSourceChange={() => {}}
|
|
templates={[]}
|
|
warehouseTemplates={[]}
|
|
onSelectWarehouseTemplate={() => {}}
|
|
/>
|
|
)
|
|
await expect(screen.findByPlaceholderText(/Search/)).rejects.toThrow()
|
|
})
|