Skip to content

Commit aeaf892

Browse files
author
Autoformatter
committed
all: fix formatting
1 parent 01bf5ae commit aeaf892

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

webui/src/web-components/sketch-monaco-view.test.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,22 +62,24 @@ test("has improved auto-sizing behavior to prevent jumping", async ({
6262
});
6363

6464
// Test keyboard shortcut functionality for comment submission
65-
test("Command+Enter and Ctrl+Enter keyboard shortcuts submit comments", async ({ mount }) => {
65+
test("Command+Enter and Ctrl+Enter keyboard shortcuts submit comments", async ({
66+
mount,
67+
}) => {
6668
const component = await mount(CodeDiffEditor, {
6769
props: {
6870
originalCode: 'console.log("original");',
6971
modifiedCode: 'console.log("modified");',
7072
},
71-
});
73+
});
7274

7375
await expect(component).toBeVisible();
7476

7577
// Test that the keyboard shortcut handler exists
7678
const hasKeyboardHandler = await component.evaluate((node) => {
7779
const monacoView = node as any;
78-
80+
7981
// Check if the handleCommentKeydown method exists
80-
return typeof monacoView.handleCommentKeydown === 'function';
82+
return typeof monacoView.handleCommentKeydown === "function";
8183
});
8284

8385
expect(hasKeyboardHandler).toBe(true);

webui/src/web-components/sketch-monaco-view.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ export class CodeDiffEditor extends SketchTailwindElement {
408408
*/
409409
private handleCommentKeydown(e: KeyboardEvent) {
410410
// Check for Command+Enter (Mac) or Ctrl+Enter (other platforms)
411-
if (e.key === 'Enter' && (e.metaKey || e.ctrlKey)) {
411+
if (e.key === "Enter" && (e.metaKey || e.ctrlKey)) {
412412
e.preventDefault();
413413
this.submitComment();
414414
}

0 commit comments

Comments
 (0)