Update app.js

This commit is contained in:
Flame Sage 2018-02-10 16:40:47 +00:00 committed by GitHub
parent 8808664c02
commit 057838b4c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.`);