Skip to content

Commit 8f0bb7f

Browse files
thorstendb-ARMomarArm
authored andcommitted
removed unused function
1 parent 38f08e5 commit 8f0bb7f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/views/component-viewer/component-viewer-target-access.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,19 +164,19 @@ describe('ComponentViewerTargetAccess', () => {
164164

165165
const result = await targetAccess.evaluateMemory('0xFFFFFFFF', 4, 0);
166166

167-
expect(result).toBe('Invalid memory address');
167+
expect(result).toBeUndefined();
168168
expect(logDebugSpy).toHaveBeenCalledWith(
169169
'Session \'test-session\': Failed to read memory at address \'0xFFFFFFFF\' - \'Invalid memory address\''
170170
);
171171
});
172172

173-
it('should return "No active session" when custom request fails for memory read', async () => {
173+
it('should return undefined when custom request fails for memory read', async () => {
174174
const logDebugSpy = jest.spyOn(logger, 'debug');
175175
(debugSession.customRequest as jest.Mock).mockRejectedValueOnce(new Error('custom request failed'));
176176

177177
const result = await targetAccess.evaluateMemory('0x20000000', 4, 0);
178178

179-
expect(result).toBe('No active session');
179+
expect(result).toBeUndefined();
180180
expect(logDebugSpy).toHaveBeenCalledWith(
181181
'Session \'test-session\': Failed to read memory at address \'0x20000000\' - \'custom request failed\''
182182
);

0 commit comments

Comments
 (0)