Skip to content

Commit ff18c8b

Browse files
committed
style(webapp): reapply prettier wrap to picker test and reducer
These got reverted when lint-staged failed during the original picker commit (eslint-fix task tripped, lint-staged restored pre-task state), and the unformatted blobs landed because the husky pre-commit wrapper ignored lint-staged's exit code. CI's prettier --check caught it. Made-with: Cursor
1 parent 74910db commit ff18c8b

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

packages/webapp/src/components/TipTap/hyperlinkPopovers/commands/applyCreate.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ const baseOpts = (extra?: Partial<any>) => {
3131
selection: { empty: true },
3232
schema: {
3333
text: jest.fn((t: string, marks: any[]) => ({ text: t, marks })),
34-
marks: { hyperlink: { create: jest.fn((attrs: unknown) => ({ type: 'hyperlink', attrs })) } }
34+
marks: {
35+
hyperlink: { create: jest.fn((attrs: unknown) => ({ type: 'hyperlink', attrs })) }
36+
}
3537
}
3638
}
3739
}

packages/webapp/src/components/TipTap/hyperlinkPopovers/hooks/linkSuggestionStateReducer.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,5 @@ export function linkSuggestionStateReducer(
7272

7373
case 'HIGHLIGHT_LAST':
7474
return state.totalRows === 0 ? state : { ...state, highlightIndex: state.totalRows - 1 }
75-
7675
}
7776
}

0 commit comments

Comments
 (0)