Skip to content

Commit e08efa7

Browse files
author
Lucas Cosmo Rocha
committed
Update integration tests
1 parent e683e0d commit e08efa7

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

test/integration/index.spec.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)