style: run prettier formatter over src and tests

This commit is contained in:
2026-06-11 20:46:00 +05:30
parent 2389d4f297
commit 6b564a4569
211 changed files with 6134 additions and 4234 deletions
+9 -3
View File
@@ -10,7 +10,10 @@ describe('Phase 9 commands', () => {
localStorage.clear();
useCommandStore.setState({ handlers: {}, userBindings: {} } as any);
useAppStore.setState({ modal: { kind: null } } as any);
useFileStore.setState({ activeTabId: '/x.md', openTabs: [{ id: '/x.md', path: '/x.md', title: 'x.md', dirty: false }] } as any);
useFileStore.setState({
activeTabId: '/x.md',
openTabs: [{ id: '/x.md', path: '/x.md', title: 'x.md', dirty: false }],
} as any);
// Use resetToDefaults to restore store methods (setSetting/resetToDefaults)
useSettingsStore.getState().resetToDefaults();
});
@@ -36,7 +39,10 @@ describe('Phase 9 commands', () => {
it('tools.exportWord opens export-word modal with active path', () => {
registerMenuCommands();
useCommandStore.getState().dispatch('tools.exportWord');
expect(useAppStore.getState().modal).toEqual({ kind: 'export-word', props: { sourcePath: '/x.md' } });
expect(useAppStore.getState().modal).toEqual({
kind: 'export-word',
props: { sourcePath: '/x.md' },
});
});
it('tools.repl toggles replOpen setting', () => {
@@ -47,4 +53,4 @@ describe('Phase 9 commands', () => {
useCommandStore.getState().dispatch('tools.repl');
expect(useSettingsStore.getState().replOpen).toBe(false);
});
});
});