From 007315c3a17bb233d91f5d1d1b5c0a8c38e2936f Mon Sep 17 00:00:00 2001 From: Riccardo Ferretti Date: Wed, 29 Oct 2025 17:21:23 +0100 Subject: [PATCH] lint --- .../src/features/panels/dataviz.spec.ts | 30 ++++++++++++------- 1 file changed, 19 insertions(+), 11 deletions(-) diff --git a/packages/foam-vscode/src/features/panels/dataviz.spec.ts b/packages/foam-vscode/src/features/panels/dataviz.spec.ts index 94e32a9f..1d0cbf48 100644 --- a/packages/foam-vscode/src/features/panels/dataviz.spec.ts +++ b/packages/foam-vscode/src/features/panels/dataviz.spec.ts @@ -16,7 +16,7 @@ describe('Graph Panel', () => { // Open a note in column 1 await vscode.window.showTextDocument(vscode.Uri.file(noteUri.toFsPath()), { - viewColumn: vscode.ViewColumn.One + viewColumn: vscode.ViewColumn.One, }); // Execute show-graph command @@ -59,7 +59,7 @@ describe('Graph Panel', () => { // Open a note in column 1 await vscode.window.showTextDocument(vscode.Uri.file(noteUri.toFsPath()), { - viewColumn: vscode.ViewColumn.One + viewColumn: vscode.ViewColumn.One, }); // Create graph (should be beside column 1, so in column 2) @@ -77,11 +77,13 @@ describe('Graph Panel', () => { const { uri: note2Uri } = await createFile('# Note B', ['note-b.md']); await vscode.window.showTextDocument(vscode.Uri.file(note2Uri.toFsPath()), { viewColumn: vscode.ViewColumn.One, - preview: false + preview: false, }); // Focus should be on note in column 1 - expect(vscode.window.activeTextEditor?.viewColumn).toBe(vscode.ViewColumn.One); + expect(vscode.window.activeTextEditor?.viewColumn).toBe( + vscode.ViewColumn.One + ); // Show graph again await vscode.commands.executeCommand('foam-vscode.show-graph'); @@ -100,9 +102,12 @@ describe('Graph Panel', () => { const { uri: readmeUri } = await createFile('# Readme', ['readme.md']); // Step 1-3: Open readme.md - await vscode.window.showTextDocument(vscode.Uri.file(readmeUri.toFsPath()), { - viewColumn: vscode.ViewColumn.One - }); + await vscode.window.showTextDocument( + vscode.Uri.file(readmeUri.toFsPath()), + { + viewColumn: vscode.ViewColumn.One, + } + ); // Step 4: Show graph (should appear beside the editor, not in column 1) await vscode.commands.executeCommand('foam-vscode.show-graph'); @@ -118,10 +123,13 @@ describe('Graph Panel', () => { expect(originalGraphColumn).toBeGreaterThan(vscode.ViewColumn.One); // Step 5: Return focus to readme.md - await vscode.window.showTextDocument(vscode.Uri.file(readmeUri.toFsPath()), { - viewColumn: vscode.ViewColumn.One, - preserveFocus: false - }); + await vscode.window.showTextDocument( + vscode.Uri.file(readmeUri.toFsPath()), + { + viewColumn: vscode.ViewColumn.One, + preserveFocus: false, + } + ); // Step 6: Open markdown preview (simulated by opening another document in the same group as graph) // In real scenario, this would be the markdown preview, but for testing we'll verify