Skip to content

Commit 571582b

Browse files
committed
lint
1 parent 22c5e7e commit 571582b

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

tests/unit/mcp.actors.test.ts

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -15,45 +15,45 @@ function makeActorDefinitionWithPath(webServerMcpPath?: unknown): ActorDefinitio
1515
}
1616

1717
describe('getActorMCPServerPath', () => {
18-
it('should return null if webServerMcpPath is missing', async () => {
18+
it('should return null if webServerMcpPath is missing', () => {
1919
const actorDefinition = makeActorDefinitionWithPath();
20-
const result = await getActorMCPServerPath(actorDefinition);
20+
const result = getActorMCPServerPath(actorDefinition);
2121
expect(result).toBeNull();
2222
});
2323

24-
it('should return null if webServerMcpPath is not a string', async () => {
24+
it('should return null if webServerMcpPath is not a string', () => {
2525
const actorDefinition = makeActorDefinitionWithPath(123);
26-
const result = await getActorMCPServerPath(actorDefinition);
26+
const result = getActorMCPServerPath(actorDefinition);
2727
expect(result).toBeNull();
2828
});
2929

30-
it('should return the single path if only one is present', async () => {
30+
it('should return the single path if only one is present', () => {
3131
const actorDefinition = makeActorDefinitionWithPath('/mcp');
32-
const result = await getActorMCPServerPath(actorDefinition);
32+
const result = getActorMCPServerPath(actorDefinition);
3333
expect(result).toBe('/mcp');
3434
});
3535

36-
it('should return the streamable path if present among multiple', async () => {
36+
it('should return the streamable path if present among multiple', () => {
3737
const actorDefinition = makeActorDefinitionWithPath(`/foo, ${MCP_STREAMABLE_ENDPOINT}, /bar`);
38-
const result = await getActorMCPServerPath(actorDefinition);
38+
const result = getActorMCPServerPath(actorDefinition);
3939
expect(result).toBe(MCP_STREAMABLE_ENDPOINT);
4040
});
4141

42-
it('should return the first path if streamable is not present', async () => {
42+
it('should return the first path if streamable is not present', () => {
4343
const actorDefinition = makeActorDefinitionWithPath('/foo, /bar, /baz');
44-
const result = await getActorMCPServerPath(actorDefinition);
44+
const result = getActorMCPServerPath(actorDefinition);
4545
expect(result).toBe('/foo');
4646
});
4747

48-
it('should trim whitespace from paths', async () => {
48+
it('should trim whitespace from paths', () => {
4949
const actorDefinition = makeActorDefinitionWithPath(' /foo , /bar ');
50-
const result = await getActorMCPServerPath(actorDefinition);
50+
const result = getActorMCPServerPath(actorDefinition);
5151
expect(result).toBe('/foo');
5252
});
5353

54-
it('should handle streamable path with whitespace', async () => {
54+
it('should handle streamable path with whitespace', () => {
5555
const actorDefinition = makeActorDefinitionWithPath(` /foo , ${MCP_STREAMABLE_ENDPOINT} , /bar `);
56-
const result = await getActorMCPServerPath(actorDefinition);
56+
const result = getActorMCPServerPath(actorDefinition);
5757
expect(result).toBe(MCP_STREAMABLE_ENDPOINT);
5858
});
5959
});

0 commit comments

Comments
 (0)