Add cucumber tests for node IDs

This commit is contained in:
Lauren Budorick
2016-05-19 11:04:00 -04:00
committed by Daniel J. Hofmann
parent a4ac07866a
commit 6777127497
3 changed files with 22 additions and 1 deletions
+5
View File
@@ -163,6 +163,11 @@ module.exports = function () {
return matching.legs.map(l => {return zip(l.annotation.duration, l.annotation.distance).map(p => { return p.join(':'); }).join(','); }).join(',');
};
this.OSMIDList = (instructions) => {
// OSM node IDs also come from the annotation list
return instructions.annotation.nodes.map(x => x.toString()).join(',');
}
this.turnList = (instructions) => {
return instructions.legs.reduce((m, v) => m.concat(v.steps), [])
.map(v => {