mirror of
https://github.com/supabase/supabase.git
synced 2026-12-04 15:39:13 +00:00
## Problem API Keys Settings view needs updating. ## Solution Added admonition with update and link to docs.
20 lines
629 B
TypeScript
20 lines
629 B
TypeScript
import { screen } from '@testing-library/react'
|
|
import { describe, expect, it } from 'vitest'
|
|
|
|
import ApiKeysLayout from './APIKeysLayout'
|
|
import { customRender } from '@/tests/lib/custom-render'
|
|
|
|
describe('ApiKeysLayout', () => {
|
|
it('renders its children without tabs', () => {
|
|
customRender(
|
|
<ApiKeysLayout>
|
|
<div>content</div>
|
|
</ApiKeysLayout>
|
|
)
|
|
|
|
expect(screen.getByText('content')).toBeInTheDocument()
|
|
expect(screen.queryByText('Publishable and secret API keys')).not.toBeInTheDocument()
|
|
expect(screen.queryByText('Legacy anon, service_role API keys')).not.toBeInTheDocument()
|
|
})
|
|
})
|