@@ -3218,7 +3218,7 @@ mutation procedure sum(a: Int, b: Int): Int
32183218 const { json, meta } = SuperJSON . serialize ( new Decimal ( '1.23' ) ) ;
32193219 const r = await handler ( {
32203220 method : 'get' ,
3221- path : '/$procedures /echoDecimal' ,
3221+ path : '/$procs /echoDecimal' ,
32223222 query : {
32233223 q : JSON . stringify ( json ) ,
32243224 meta : JSON . stringify ( { serialization : meta } ) ,
@@ -3234,7 +3234,7 @@ mutation procedure sum(a: Int, b: Int): Int
32343234 it ( 'supports GET procedures without args when param is optional' , async ( ) => {
32353235 const r = await handler ( {
32363236 method : 'get' ,
3237- path : '/$procedures /greet' ,
3237+ path : '/$procs /greet' ,
32383238 query : { } ,
32393239 client,
32403240 } ) ;
@@ -3246,7 +3246,7 @@ mutation procedure sum(a: Int, b: Int): Int
32463246 it ( 'errors for missing required single-param arg' , async ( ) => {
32473247 const r = await handler ( {
32483248 method : 'get' ,
3249- path : '/$procedures /echoInt' ,
3249+ path : '/$procs /echoInt' ,
32503250 query : { } ,
32513251 client,
32523252 } ) ;
@@ -3266,7 +3266,7 @@ mutation procedure sum(a: Int, b: Int): Int
32663266 it ( 'supports GET procedures without args when all params are optional' , async ( ) => {
32673267 const r = await handler ( {
32683268 method : 'get' ,
3269- path : '/$procedures /opt2' ,
3269+ path : '/$procs /opt2' ,
32703270 query : { } ,
32713271 client,
32723272 } ) ;
@@ -3278,7 +3278,7 @@ mutation procedure sum(a: Int, b: Int): Int
32783278 it ( 'supports array-typed single param via q JSON array' , async ( ) => {
32793279 const r = await handler ( {
32803280 method : 'get' ,
3281- path : '/$procedures /sumIds' ,
3281+ path : '/$procs /sumIds' ,
32823282 query : { q : JSON . stringify ( [ 1 , 2 , 3 ] ) } ,
32833283 client,
32843284 } ) ;
@@ -3290,7 +3290,7 @@ mutation procedure sum(a: Int, b: Int): Int
32903290 it ( 'supports enum-typed params with validation' , async ( ) => {
32913291 const r = await handler ( {
32923292 method : 'get' ,
3293- path : '/$procedures /echoRole' ,
3293+ path : '/$procs /echoRole' ,
32943294 query : { q : JSON . stringify ( 'ADMIN' ) } ,
32953295 client,
32963296 } ) ;
@@ -3302,7 +3302,7 @@ mutation procedure sum(a: Int, b: Int): Int
33023302 it ( 'supports typedef params (object payload)' , async ( ) => {
33033303 const r = await handler ( {
33043304 method : 'get' ,
3305- path : '/$procedures /echoOverview' ,
3305+ path : '/$procs /echoOverview' ,
33063306 query : { q : JSON . stringify ( { total : 123 } ) } ,
33073307 client,
33083308 } ) ;
@@ -3314,7 +3314,7 @@ mutation procedure sum(a: Int, b: Int): Int
33143314 it ( 'errors for wrong type input' , async ( ) => {
33153315 const r = await handler ( {
33163316 method : 'get' ,
3317- path : '/$procedures /echoInt' ,
3317+ path : '/$procs /echoInt' ,
33183318 query : { q : JSON . stringify ( 'not-an-int' ) } ,
33193319 client,
33203320 } ) ;
@@ -3335,7 +3335,7 @@ mutation procedure sum(a: Int, b: Int): Int
33353335 const { json, meta } = SuperJSON . serialize ( { a : 1 , b : 2 } ) ;
33363336 const r = await handler ( {
33373337 method : 'post' ,
3338- path : '/$procedures /sum' ,
3338+ path : '/$procs /sum' ,
33393339 query : {
33403340 q : JSON . stringify ( json ) ,
33413341 meta : JSON . stringify ( { serialization : meta } ) ,
@@ -3350,7 +3350,7 @@ mutation procedure sum(a: Int, b: Int): Int
33503350 it ( 'errors for too many args (positional array)' , async ( ) => {
33513351 const r = await handler ( {
33523352 method : 'post' ,
3353- path : '/$procedures /sum' ,
3353+ path : '/$procs /sum' ,
33543354 query : { q : JSON . stringify ( [ 1 , 2 , 3 ] ) } ,
33553355 client,
33563356 } ) ;
@@ -3370,7 +3370,7 @@ mutation procedure sum(a: Int, b: Int): Int
33703370 it ( 'errors for unknown argument keys (object mapping)' , async ( ) => {
33713371 const r = await handler ( {
33723372 method : 'post' ,
3373- path : '/$procedures /sum' ,
3373+ path : '/$procs /sum' ,
33743374 query : { q : JSON . stringify ( { a : 1 , b : 2 , c : 3 } ) } ,
33753375 client,
33763376 } ) ;
0 commit comments