@@ -83,9 +83,7 @@ describe("Tool args", () => {
8383
8484 it ( "should provide custom field name in error messages" , ( ) => {
8585 const schema = AtlasArgs . objectId ( "Custom Field" ) ;
86- expect ( ( ) => schema . parse ( "invalid" ) ) . toThrow (
87- "Custom Field must be a valid 24-character hexadecimal string"
88- ) ;
86+ expect ( ( ) => schema . parse ( "invalid" ) ) . toThrow ( "Custom Field must be exactly 24 characters" ) ;
8987 } ) ;
9088
9189 it ( "should not fail if the value is optional" , ( ) => {
@@ -108,15 +106,13 @@ describe("Tool args", () => {
108106
109107 it ( "should reject invalid project IDs" , ( ) => {
110108 const schema = AtlasArgs . projectId ( ) ;
111- expect ( ( ) => schema . parse ( "invalid" ) ) . toThrow (
112- "projectId must be a valid 24-character hexadecimal string"
113- ) ;
109+ expect ( ( ) => schema . parse ( "invalid" ) ) . toThrow ( "projectId must be exactly 24 characters" ) ;
114110 expect ( ( ) => schema . parse ( "507f1f77bc*86cd79943901" ) ) . toThrow (
115- "projectId must be a valid 24-character hexadecimal string "
111+ "projectId must contain only hexadecimal characters "
116112 ) ;
117113 expect ( ( ) => schema . parse ( "" ) ) . toThrow ( "projectId is required" ) ;
118114 expect ( ( ) => schema . parse ( "507f1f77/bcf86cd799439011" ) ) . toThrow (
119- "projectId must be a valid 24-character hexadecimal string "
115+ "projectId must contain only hexadecimal characters "
120116 ) ;
121117 } ) ;
122118 } ) ;
@@ -130,9 +126,7 @@ describe("Tool args", () => {
130126
131127 it ( "should reject invalid organization IDs" , ( ) => {
132128 const schema = AtlasArgs . organizationId ( ) ;
133- expect ( ( ) => schema . parse ( "invalid" ) ) . toThrow (
134- "organizationId must be a valid 24-character hexadecimal string"
135- ) ;
129+ expect ( ( ) => schema . parse ( "invalid" ) ) . toThrow ( "organizationId must be exactly 24 characters" ) ;
136130 } ) ;
137131 } ) ;
138132
0 commit comments