osrm-backend/features/step_definitions/timestamp.js

14 lines
430 B
JavaScript
Raw Permalink Normal View History

2016-03-04 15:11:05 -05:00
var assert = require('assert');
module.exports = function () {
this.Then(/^I should get a valid timestamp/, (callback) => {
this.ShouldGetAResponse();
this.ShouldBeValidJSON((err) => {
this.ShouldBeWellFormed();
assert.equal(typeof this.json.timestamp, 'string');
assert.equal(this.json.timestamp, '2000-01-01T00:00:00Z');
callback(err);
});
});
};