From fa15047beaf4737134fd5b1e2c1f75617cd6da78 Mon Sep 17 00:00:00 2001 From: Vishwac Sena Kannan Date: Wed, 14 Aug 2019 17:35:01 -0700 Subject: [PATCH] Fixing breaking tests --- packages/Ludown/lib/parser.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/Ludown/lib/parser.js b/packages/Ludown/lib/parser.js index 3d498cd8..8f4bf3cb 100644 --- a/packages/Ludown/lib/parser.js +++ b/packages/Ludown/lib/parser.js @@ -88,8 +88,12 @@ const writeOutFiles = function(program,finalLUISJSON,finalQnAJSON, finalQnAAlter finalLUISJSON.culture = finalLUISJSON.culture.toLowerCase(); } + if (!program.luis_name && finalLUISJSON && finalLUISJSON.name) program.luis_name = finalLUISJSON.name; + if (finalQnAJSON) finalQnAJSON.name = program.qna_name || finalQnAJSON.name || path.basename(rootFile, path.extname(rootFile)); + if (!program.qna_name && finalQnAJSON && finalQnAJSON.name) program.qna_name = finalQnAJSON.name || ''; + var writeQnAFile = (finalQnAJSON.qnaList.length > 0) || (finalQnAJSON.urls.length > 0) || (finalQnAJSON.files.length > 0);