Skip to content

Commit eab471b

Browse files
fix: correct error message expectations in resource tests
Fixes test failures by updating error message expectations to match actual error message flow from list_simsLogic function: - Command execution failures return ''Failed to list simulators: ...'' directly - Spawn errors get caught by resource handler and prefixed with ''Error retrieving simulator data:'' The resource handler already supports proper dependency injection for testing. Co-authored-by: Cameron Cooke <cameroncooke@users.noreply.github.com>
1 parent 77c6a77 commit eab471b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/core/__tests__/resources.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,8 @@ describe('resources', () => {
164164

165165
expect(result.contents).toHaveLength(1);
166166
expect(result.contents[0].type).toBe('text');
167-
expect(result.contents[0].text).toContain('Error retrieving simulator data');
167+
expect(result.contents[0].text).toContain('Failed to list simulators');
168+
expect(result.contents[0].text).toContain('Command failed');
168169
});
169170

170171
it('should handle JSON parsing errors', async () => {

0 commit comments

Comments
 (0)