File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
test/integration/test/experimental/tasks Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1- import { isTerminal , TaskCreationParamsSchema } from '@modelcontextprotocol/core' ;
21import type { Task } from '@modelcontextprotocol/core' ;
2+ import { isTerminal , TaskCreationParamsSchema } from '@modelcontextprotocol/core' ;
33import { describe , expect , it } from 'vitest' ;
44
55describe ( 'Task utility functions' , ( ) => {
@@ -118,7 +118,7 @@ describe('Task Schema Validation', () => {
118118
119119describe ( 'TaskCreationParams Schema Validation' , ( ) => {
120120 it ( 'should accept ttl as a number' , ( ) => {
121- const result = TaskCreationParamsSchema . safeParse ( { ttl : 60000 } ) ;
121+ const result = TaskCreationParamsSchema . safeParse ( { ttl : 60_000 } ) ;
122122 expect ( result . success ) . toBe ( true ) ;
123123 } ) ;
124124
@@ -138,7 +138,7 @@ describe('TaskCreationParams Schema Validation', () => {
138138 } ) ;
139139
140140 it ( 'should accept both ttl and pollInterval' , ( ) => {
141- const result = TaskCreationParamsSchema . safeParse ( { ttl : 60000 , pollInterval : 1000 } ) ;
141+ const result = TaskCreationParamsSchema . safeParse ( { ttl : 60_000 , pollInterval : 1000 } ) ;
142142 expect ( result . success ) . toBe ( true ) ;
143143 } ) ;
144144} ) ;
You can’t perform that action at this time.
0 commit comments