@@ -15,45 +15,45 @@ function makeActorDefinitionWithPath(webServerMcpPath?: unknown): ActorDefinitio
1515}
1616
1717describe ( '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