We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2601b56 commit 9c5b840Copy full SHA for 9c5b840
src/debug-session/gdbtarget-debug-session.test.ts
@@ -81,7 +81,7 @@ describe('GDBTargetDebugSession', () => {
81
const logDebugSpy = jest.spyOn(logger, 'debug');
82
(debugSession.customRequest as jest.Mock).mockRejectedValueOnce(new Error('myError'));
83
const result = await gdbTargetSession.evaluateGlobalExpression('myGlobalVariable');
84
- expect(result).toBe('Error: could not evaluate expression');
+ expect(result).toBe('myError');
85
expect(debugSession.customRequest as jest.Mock).toHaveBeenCalledWith('evaluate', { expression: 'myGlobalVariable', frameId: 0, context: 'hover' });
86
expect(logDebugSpy).toHaveBeenCalledWith('Session \'session-name\': Failed to evaluate global expression \'myGlobalVariable\' - \'myError\'');
87
});
0 commit comments