mirror of
https://github.com/langgenius/dify.git
synced 2026-07-23 20:18:40 +08:00
16 lines
383 B
TypeScript
16 lines
383 B
TypeScript
import { isValidSettingsTab } from '../constants'
|
|
|
|
describe('isValidSettingsTab', () => {
|
|
it.each([
|
|
['roles-and-permissions', true],
|
|
['preferences', true],
|
|
['provider', true],
|
|
['mcp', true],
|
|
['agent-strategy', true],
|
|
['invalid', false],
|
|
[null, false],
|
|
])('validates %s', (tab, expected) => {
|
|
expect(isValidSettingsTab(tab)).toBe(expected)
|
|
})
|
|
})
|