Skip to content

Commit 2b70426

Browse files
committed
Fix test
1 parent 1849b78 commit 2b70426

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/extension/context/node/resolvers/test/vscodeContext.spec.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,10 @@ describe('parseSettingsAndCommands', () => {
146146
\`\`\``;
147147

148148
const result = await parseSettingsAndCommands(mockService, codeBlock);
149-
expect(result).toEqual([]);
149+
expect(result).toHaveLength(1);
150+
expect(result[0].commandToRun?.command).toBe('workbench.action.quickOpen');
151+
expect(result[0].commandToRun?.arguments).toEqual(['>']);
152+
expect(result[0].commandToRun?.title).toBe('Open Command Palette');
150153
});
151154

152155
it('processes extension search command', async () => {

0 commit comments

Comments
 (0)