Skip to content

Commit af110c9

Browse files
committed
test: remove useless test(it is test for msw lol)
1 parent ed8f883 commit af110c9

1 file changed

Lines changed: 0 additions & 23 deletions

File tree

src/toolsets.test.ts

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,6 @@ import { type McpToolDefinition, createMcpApp } from '../mocks/mcp-server';
1212
import { server } from '../mocks/node';
1313
import { StackOneToolSet, ToolSetConfigError } from './toolsets';
1414

15-
/**
16-
* Test helper: Extends StackOneToolSet to expose private methods for testing
17-
*/
18-
class TestableStackOneToolSet extends StackOneToolSet {
19-
// Expose private methods for testing
20-
public testMatchGlob(str: string, pattern: string): boolean {
21-
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- Accessing private method for testing
22-
return (this as any).matchGlob(str, pattern);
23-
}
24-
}
25-
2615
describe('StackOneToolSet', () => {
2716
beforeEach(() => {
2817
vi.stubEnv('STACKONE_API_KEY', 'test_key');
@@ -169,18 +158,6 @@ describe('StackOneToolSet', () => {
169158
});
170159
});
171160

172-
describe('glob matching', () => {
173-
it('should correctly match glob patterns', () => {
174-
const toolset = new TestableStackOneToolSet({ apiKey: 'test_key' });
175-
176-
expect(toolset.testMatchGlob('bamboohr_get_employee', 'bamboohr_*')).toBe(true);
177-
expect(toolset.testMatchGlob('bamboohr_get_employee', 'salesforce_*')).toBe(false);
178-
expect(toolset.testMatchGlob('bamboohr_get_employee', '*_get_*')).toBe(true);
179-
expect(toolset.testMatchGlob('bamboohr_get_employee', 'bamboohr_get_?mployee')).toBe(true);
180-
expect(toolset.testMatchGlob('bamboohr.get.employee', 'bamboohr.get.employee')).toBe(true);
181-
});
182-
});
183-
184161
describe('fetchTools (MCP integration)', () => {
185162
it('creates tools from MCP catalog and wires RPC execution', async () => {
186163
const toolset = new StackOneToolSet({

0 commit comments

Comments
 (0)