mirror of
https://github.com/Syngnat/GoNavi.git
synced 2026-07-08 11:31:57 +08:00
test(query-editor): allow literal 100-row limit label
This commit is contained in:
@@ -33,7 +33,6 @@ const requiredKeys = [
|
||||
'query_editor.placeholder.connection',
|
||||
'query_editor.placeholder.database',
|
||||
'query_editor.max_rows.tooltip',
|
||||
'query_editor.max_rows.option_100',
|
||||
'query_editor.max_rows.option_500',
|
||||
'query_editor.max_rows.option_1000',
|
||||
'query_editor.max_rows.option_5000',
|
||||
@@ -66,6 +65,7 @@ describe('QueryEditorToolbar i18n', () => {
|
||||
expect(source).toContain("import { useOptionalI18n } from '../i18n/provider';");
|
||||
expect(source).toContain('const i18n = useOptionalI18n();');
|
||||
expect(source).toContain('const t = i18n?.t ?? defaultTranslate;');
|
||||
expect(source).toContain("{ label: '100', value: 100 }");
|
||||
|
||||
for (const key of requiredKeys) {
|
||||
expect(source).toContain(key);
|
||||
|
||||
Reference in New Issue
Block a user