Add test to chek we still send events when errored map static tile

This commit is contained in:
Daniel García Aubert
2020-04-29 10:28:10 +02:00
parent c88a14bf43
commit 4e3ef96374
3 changed files with 43 additions and 3 deletions
+1 -1
View File
@@ -78,7 +78,7 @@ function getResponseTime (res) {
return undefined;
}
return stats.total.toString();
return stats && stats.total ? stats.total.toString() : undefined;
}
function getFromReq (req, { query = {}, body = {}, params = {}, headers = {} } = {}) {