Skip to content

Commit 79912f7

Browse files
committed
fix: Update CodeActionProvider test mocks to properly handle QuickFix
1 parent 524ba93 commit 79912f7

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/core/__tests__/CodeActionProvider.test.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,14 @@ jest.mock("vscode", () => ({
88
title,
99
kind,
1010
command: undefined,
11+
isPreferred: false,
1112
})),
1213
CodeActionKind: {
13-
QuickFix: { value: "quickfix" },
14-
RefactorRewrite: { value: "refactor.rewrite" },
14+
QuickFix: { value: "quickfix", append: (value: string) => ({ value: `quickfix.${value}` }) },
15+
RefactorRewrite: {
16+
value: "refactor.rewrite",
17+
append: (value: string) => ({ value: `refactor.rewrite.${value}` }),
18+
},
1519
},
1620
Range: jest.fn().mockImplementation((startLine, startChar, endLine, endChar) => ({
1721
start: { line: startLine, character: startChar },

0 commit comments

Comments
 (0)