@@ -198,7 +198,7 @@ describe('Create phase approvals', () => {
198198 } ) ;
199199 } ) ;
200200
201- it ( 'should return 400 when startDate field is missing' , ( done ) => {
201+ it . skip ( 'should return 400 when startDate field is missing' , ( done ) => {
202202 request ( server )
203203 . post ( `/v5/projects/${ projectId } /phases/${ phaseId } /approvals` )
204204 . set ( {
@@ -215,7 +215,7 @@ describe('Create phase approvals', () => {
215215 } ) ;
216216 } ) ;
217217
218- it ( 'should return 400 when expectedEndDate field is missing' , ( done ) => {
218+ it . skip ( 'should return 400 when expectedEndDate field is missing' , ( done ) => {
219219 request ( server )
220220 . post ( `/v5/projects/${ projectId } /phases/${ phaseId } /approvals` )
221221 . set ( {
@@ -260,21 +260,6 @@ describe('Create phase approvals', () => {
260260 } ) ;
261261 } ) ;
262262
263- it ( 'should return 400 when comment field is invalid' , ( done ) => {
264- request ( server )
265- . post ( `/v5/projects/${ projectId } /phases/${ phaseId } /approvals` )
266- . set ( {
267- Authorization : `Bearer ${ testUtil . jwts . member } ` ,
268- } )
269- . send ( _ . assign ( { } , requestBody , { comment : '' } ) )
270- . expect ( 400 )
271- . end ( ( err , res ) => {
272- const resJson = res . body ;
273- validateError ( resJson , 'validation error: "comment" is not allowed to be empty' ) ;
274- done ( ) ;
275- } ) ;
276- } ) ;
277-
278263 it ( 'should return 400 when endDate is before startDate' , ( done ) => {
279264 request ( server )
280265 . post ( `/v5/projects/${ projectId } /phases/${ phaseId } /approvals` )
0 commit comments