@@ -320,74 +320,6 @@ describe('CREATE milestone', () => {
320320 . expect ( 422 , done ) ;
321321 } ) ;
322322
323- it ( 'should return 422 if missing plannedText' , ( done ) => {
324- const invalidBody = {
325- param : _ . assign ( { } , body . param , {
326- plannedText : undefined ,
327- } ) ,
328- } ;
329-
330- request ( server )
331- . post ( '/v4/timelines/1/milestones' )
332- . set ( {
333- Authorization : `Bearer ${ testUtil . jwts . admin } ` ,
334- } )
335- . send ( invalidBody )
336- . expect ( 'Content-Type' , / j s o n / )
337- . expect ( 422 , done ) ;
338- } ) ;
339-
340- it ( 'should return 422 if missing activeText' , ( done ) => {
341- const invalidBody = {
342- param : _ . assign ( { } , body . param , {
343- activeText : undefined ,
344- } ) ,
345- } ;
346-
347- request ( server )
348- . post ( '/v4/timelines/1/milestones' )
349- . set ( {
350- Authorization : `Bearer ${ testUtil . jwts . admin } ` ,
351- } )
352- . send ( invalidBody )
353- . expect ( 'Content-Type' , / j s o n / )
354- . expect ( 422 , done ) ;
355- } ) ;
356-
357- it ( 'should return 422 if missing completedText' , ( done ) => {
358- const invalidBody = {
359- param : _ . assign ( { } , body . param , {
360- completedText : undefined ,
361- } ) ,
362- } ;
363-
364- request ( server )
365- . post ( '/v4/timelines/1/milestones' )
366- . set ( {
367- Authorization : `Bearer ${ testUtil . jwts . admin } ` ,
368- } )
369- . send ( invalidBody )
370- . expect ( 'Content-Type' , / j s o n / )
371- . expect ( 422 , done ) ;
372- } ) ;
373-
374- it ( 'should return 422 if missing blockedText' , ( done ) => {
375- const invalidBody = {
376- param : _ . assign ( { } , body . param , {
377- blockedText : undefined ,
378- } ) ,
379- } ;
380-
381- request ( server )
382- . post ( '/v4/timelines/1/milestones' )
383- . set ( {
384- Authorization : `Bearer ${ testUtil . jwts . admin } ` ,
385- } )
386- . send ( invalidBody )
387- . expect ( 'Content-Type' , / j s o n / )
388- . expect ( 422 , done ) ;
389- } ) ;
390-
391323 it ( 'should return 422 if startDate is after endDate' , ( done ) => {
392324 const invalidBody = {
393325 param : _ . assign ( { } , body . param , {
0 commit comments