fleetmap-reports 2.0.262 → 2.0.263

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fleetmap-reports",
3
- "version": "2.0.262",
3
+ "version": "2.0.263",
4
4
  "description": "",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -185,6 +185,7 @@ async function processDrivers (from, to, userData, data, driversResult) {
185
185
  to,
186
186
  positions: route
187
187
  }
188
+ console.log('pushing', route.length, 'for', d.name)
188
189
  driversResult.push(driverData)
189
190
  }
190
191
  }
@@ -28,9 +28,9 @@ describe('test positions', function () {
28
28
  const userData = await report.getUserData()
29
29
  userData.byDriver = true
30
30
  const data = await report.locationReport(
31
- new Date(Date.UTC(2021, 11, 6, 0, 0, 0, 0)),
32
- new Date(Date.UTC(2021, 11, 9, 23, 59, 59, 0)),
33
- userData)
31
+ new Date(Date.UTC(2025, 0, 1, 0, 0, 0)),
32
+ new Date(Date.UTC(2025, 0, 31, 23, 59, 59, 0)),
33
+ userData)
34
34
  assert.equal(data.length, 1)
35
35
  const driver = data[0].drivers.find(d => d.driver.id === 14020)
36
36
  console.log(driver.positions)
@@ -38,7 +38,7 @@ describe('test positions', function () {
38
38
  } catch (e) {
39
39
  console.error(e)
40
40
  }
41
- }, 20000)
41
+ }, 2000000)
42
42
  // eslint-disable-next-line no-undef
43
43
  it('works with sensores', async () => {
44
44
  const deviceId = 288082