Implement NodeJS based server fully replicating osrm-routed

This commit is contained in:
Siarhei Fedartsou
2022-10-23 13:56:21 +02:00
parent c1d2c15995
commit 53f2da5d5e
37 changed files with 4300 additions and 432 deletions
+5
View File
@@ -33,6 +33,11 @@ module.exports = function () {
callback();
});
this.Then(/^HTTP code should be (\d+)$/, (code, callback) => {
assert(this.response.statusCode, parseInt(code));
callback();
});
this.Then(/^status message should be "(.*?)"$/, (message, callback) => {
try {
this.json = JSON.parse(this.response.body);