From 057838b4c207283b12c187d8811a067f57087c28 Mon Sep 17 00:00:00 2001 From: Flame Sage Date: Sat, 10 Feb 2018 16:40:47 +0000 Subject: [PATCH] Update app.js --- scripts/games/app.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/games/app.js b/scripts/games/app.js index aae7475..7fcdbd4 100644 --- a/scripts/games/app.js +++ b/scripts/games/app.js @@ -155,6 +155,11 @@ function processGame(game) { let foundTestcases = testcases.filter(x => { return releases.includes(x.title); }); + + // If no testcases exist in the toml file, create a blank array. + if (!model.testcases) { + model.testcases = []; + } logger.info(`Found ${foundTestcases.length} testcases from telemetry, found ${model.testcases.length} in toml file.`);