From 86290c45a66e8d486653aa00840590694195f7fb Mon Sep 17 00:00:00 2001 From: Olivia Appleton Date: Thu, 18 Jul 2024 23:16:55 -0500 Subject: [PATCH] Fix timeout, doc gen errors --- javascript/p0009.js | 3 +-- javascript/test.js | 3 +++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/javascript/p0009.js b/javascript/p0009.js index b375fdb9..bdedfecd 100644 --- a/javascript/p0009.js +++ b/javascript/p0009.js @@ -15,9 +15,8 @@ * * @return {number} */ -const MAX = 500; - exports.p0009 = function() { + const MAX = 500; for (let c = 3; c < MAX; c++) { let c_square = c * c; for (let b = 2; b < c; b++) { diff --git a/javascript/test.js b/javascript/test.js index 8f4c2b10..76de5c0f 100644 --- a/javascript/test.js +++ b/javascript/test.js @@ -21,6 +21,9 @@ for (question in answers) { if (knownSlow.includes(question)) { this.timeout(-1); } + else { + this.timeout(60 * 1000); + } assert.equal(answer, module[`p${formattedQuestion}`]()); }); it('should return take less than 1 minute', function(done) {