From de1e96c510b68f54fe6f1e0e1d96098b53831d07 Mon Sep 17 00:00:00 2001 From: Jeroen Schweitzer Date: Wed, 17 Jun 2026 14:07:47 +0200 Subject: [PATCH] style(test): dart format settings + keymap category tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reflow lines `dart format` collapses — the T-451/T-452 test additions were committed before `make format` ran, so the committed copies were unformatted. No behavior change; keeps the push format gate green. Co-Authored-By: Claude Opus 4.8 (1M context) --- test/builtin/keybindings_ui/preset_commands_test.dart | 5 +---- test/builtin/settings_ui/category_view_test.dart | 5 ++++- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/test/builtin/keybindings_ui/preset_commands_test.dart b/test/builtin/keybindings_ui/preset_commands_test.dart index 9d7f718c..7db6f0f6 100644 --- a/test/builtin/keybindings_ui/preset_commands_test.dart +++ b/test/builtin/keybindings_ui/preset_commands_test.dart @@ -49,10 +49,7 @@ void main() { }); test('contributes a Keymap settings category routed through the preset commands (T-451)', () { - final category = KeybindingsUiExtension().contributions - .whereType() - .firstWhere((c) => c.id == 'keymap') - .category; + final category = KeybindingsUiExtension().contributions.whereType().firstWhere((c) => c.id == 'keymap').category; expect(category.title, 'Keymap'); final field = category.sections.expand((s) => s.fields).firstWhere((f) => f.key == kKeymapPresetSetting); expect(field.kind, SettingsFieldKind.select); diff --git a/test/builtin/settings_ui/category_view_test.dart b/test/builtin/settings_ui/category_view_test.dart index d9d7402f..d7f5658b 100644 --- a/test/builtin/settings_ui/category_view_test.dart +++ b/test/builtin/settings_ui/category_view_test.dart @@ -132,7 +132,10 @@ void main() { label: 'Preset', defaultValue: 'default', applyCommandPrefix: 'test.apply.', - options: [SettingsOption(value: 'default', label: 'Default'), SettingsOption(value: 'vim', label: 'Vim')], + options: [ + SettingsOption(value: 'default', label: 'Default'), + SettingsOption(value: 'vim', label: 'Vim'), + ], ), ], ),