tracks/javascript/exercises/custom-set/example-gen.js in trackler-2.2.1.110 vs tracks/javascript/exercises/custom-set/example-gen.js in trackler-2.2.1.111

- old
+ new

@@ -158,11 +158,11 @@ function renderSuite(tests, otherTests, suiteTemplate) { return suiteTemplate(tests.concat(otherTests)); } -function suiteTemplate(tests) { +function suiteTemplateFn(tests) { return ( `var CustomSet = require('./custom-set'); describe('CustomSet', function() { ${tests} @@ -177,12 +177,12 @@ ${body} }); `); } -function array(array) { - return array.length === 0 ? '' : `[${array.join(', ')}]`; +function array(arr) { + return arr.length === 0 ? '' : `[${arr.join(', ')}]`; } function generate() { var exerciseFilePath = path.join(EXERCISE_METADATA_ROOT, EXERCISE_DIR_NAME, METADATA_FILE_NAME); var suiteData = JSON.parse(fs.readFileSync(exerciseFilePath)); @@ -191,10 +191,10 @@ SPEC_FILE_NAME, render({ suiteData: suiteData, testBodyTemplates: TEST_BODY_TEMPLATES, extraTests: NON_CANONICAL_TESTS, - suiteTemplate: suiteTemplate + suiteTemplate: suiteTemplateFn })); } generate();