From cb3391f3e03d18ea6f034f722159190971645a82 Mon Sep 17 00:00:00 2001 From: King Date: Wed, 10 Jan 2018 15:20:31 -0500 Subject: [PATCH] update recursion fix & declare all snippets --- scripts/tdd.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/tdd.js b/scripts/tdd.js index 1eebbf1a7..d008c6933 100644 --- a/scripts/tdd.js +++ b/scripts/tdd.js @@ -62,7 +62,7 @@ snippetFiles .filter((_, i) => blockMarkers[2] < i && i < blockMarkers[3]); // Export template for snippetName.js which takes into account snippet name.length when generating snippetName.js file - const exportFile = `module.exports = ${fileFunction.join('\n').slice(9 + fileName.length)}`; + const exportFile = `module.exports = ${fileName} = ${fileFunction.join('\n').slice(9 + fileName.length)}`; // Export template for snippetName.test.js which generates a example test & other information const exportTest = [