🎉 🎉 coverage of core testing reaches 80% 🌹 🍻

This commit is contained in:
abdennour 2016-11-25 18:21:23 +03:00
commit f47d6ee7be
3 changed files with 190 additions and 4 deletions

View file

@ -13,7 +13,7 @@ export const jsonsHeaders = ((array) => Array.from(
export const jsons2arrays = (jsons, headers) => {
headers = headers || jsonsHeaders(jsons);
return [headers, ...array.map((object) =>
return [headers, ...jsons.map((object) =>
headers.map((header) =>
object[header] ? object[header] : ''))]
};