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) {