fix cucumber outputs

This commit is contained in:
karenzshea
2017-01-31 12:04:07 +01:00
committed by Patrick Niklaus
parent 7256b6d0d4
commit 8d7aae8687
3 changed files with 7 additions and 9 deletions
+1 -2
View File
@@ -164,12 +164,11 @@ module.exports = function () {
};
this.annotationList = (instructions) => {
if (!('annotation' in instructions.legs[0]) || instructions.legs[0].annotation.length < 1)
if (!('annotation' in instructions.legs[0]))
return '';
return instructions.legs.map(l => {
var fields = Object.keys(l.annotation);
if (fields.length < 1) return '';
var collected = l.annotation[fields[0]].map((f, i) => {
var zipped = [];
for (var j = 0; j < fields.length; j++) {