@@ -165,44 +165,12 @@ describe('PRChecker', () => {
165165 } ) ;
166166
167167 describe ( 'checkPRWait' , ( ) => {
168- it ( 'should warn about PR younger than 72h on weekends' , ( ) => {
169- const cli = new TestCLI ( ) ;
170-
171- const expectedLogs = {
172- warn : [ [ 'Wait at least 49 more hours before landing' ] ] ,
173- info : [ [ 'This PR was created on Sat Oct 28 2017 (weekend in UTC)' ] ]
174- } ;
175-
176- const now = new Date ( '2017-10-29T13:00:41.682Z' ) ;
177- const youngPR = Object . assign ( { } , firstTimerPR , {
178- createdAt : '2017-10-28T14:25:41.682Z'
179- } ) ;
180-
181- const data = {
182- pr : youngPR ,
183- reviewers : allGreenReviewers ,
184- comments : commentsWithLGTM ,
185- reviews : approvingReviews ,
186- commits : simpleCommits ,
187- collaborators,
188- authorIsNew : ( ) => true ,
189- getThread ( ) {
190- return PRData . prototype . getThread . call ( this ) ;
191- }
192- } ;
193- const checker = new PRChecker ( cli , data , argv ) ;
194-
195- const status = checker . checkPRWait ( now ) ;
196- assert ( ! status ) ;
197- cli . assertCalledWith ( expectedLogs ) ;
198- } ) ;
199-
200- it ( 'should warn about PR younger than 48h on weekdays' , ( ) => {
168+ it ( 'should warn about PR younger than 48h' , ( ) => {
201169 const cli = new TestCLI ( ) ;
202170
203171 const expectedLogs = {
204172 warn : [ [ 'Wait at least 22 more hours before landing' ] ] ,
205- info : [ [ 'This PR was created on Tue Oct 31 2017 (weekday in UTC) ' ] ]
173+ info : [ [ 'This PR was created on Tue Oct 31 2017' ] ]
206174 } ;
207175
208176 const now = new Date ( '2017-11-01T14:25:41.682Z' ) ;
0 commit comments