Skip to content

Commit

Permalink
distance matrix departure time unit change from miliseconds to seconds (
Browse files Browse the repository at this point in the history
#124)

* distancematrix test

departure time changed from miliseconds to seconds

* Update distance-matrix-spec.js
  • Loading branch information
monajafi authored and amuramoto committed Jun 15, 2019
1 parent 5170e1b commit fead2de
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spec/e2e/distance-matrix-spec.js
Expand Up @@ -21,7 +21,8 @@ var objectContaining = jasmine.objectContaining;
describe('distance matrix client library', function() {
var googleMaps = require('./service');

var inOneHour = new Date().getTime() + 60 * 60 * 1000;
var now = new Date().getTime() + 60 * 60 * 1000;
var inOneHour = Math.round(now/1000);

function expectOK(response) {
expect(response.status).toBe(200);
Expand Down

0 comments on commit fead2de

Please sign in to comment.