File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -236,15 +236,14 @@ describe('queryFilter()', function () {
236236 it ( 'should return req.query with set period and date_end param' , function ( done ) {
237237 const now = new Date ( ) ;
238238 const today = dateToString ( new Date ( now . getFullYear ( ) , now . getMonth ( ) , now . getDate ( ) ) )
239- const beforeToday = dateToString ( new Date ( now . getFullYear ( ) , now . getMonth ( ) , now . getDate ( ) ) )
240239
241240 const expect_filters = {
242241 $and : [
243242 { created_at : { $lt : new Date ( today ) . toISOString ( ) } } ,
244- { created_at : { $gte : new Date ( beforeToday ) . toISOString ( ) } }
243+ { created_at : { $gte : new Date ( today ) . toISOString ( ) } }
245244 ]
246245 }
247- const query = { period : '0d' , date_end : beforeToday }
246+ const query = { period : '0d' , date_end : today }
248247 const req = httpMocks . createRequest ( { method : 'GET' , url : '/' , query : query } )
249248 const res = httpMocks . createResponse ( )
250249
You can’t perform that action at this time.
0 commit comments