X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=tests%2Ftest-utils.cjs;h=5006df6e876065a75c893676185404d3c4c60a11;hb=388a5bee28fb64a2743d65189afd0a6e63314819;hp=4448eaf6a1b79539bc5b717c6f22704092d3102c;hpb=66f0c14c082ad6013dd1ca8e2a45a61c8295bc23;p=poolifier.git diff --git a/tests/test-utils.cjs b/tests/test-utils.cjs index 4448eaf6..5006df6e 100644 --- a/tests/test-utils.cjs +++ b/tests/test-utils.cjs @@ -58,7 +58,7 @@ const sleepTaskFunction = async ( const jsonIntegerSerialization = n => { for (let i = 0; i < n; i++) { const o = { - a: i + a: i, } JSON.stringify(o) } @@ -66,8 +66,8 @@ const jsonIntegerSerialization = n => { } /** - * @param {number} n - The number of fibonacci numbers to generate. - * @returns {number} - The nth fibonacci number. + * @param n - The number of fibonacci numbers to generate. + * @returns - The nth fibonacci number. */ const fibonacci = n => { let current = 1 @@ -81,8 +81,8 @@ const fibonacci = n => { } /** - * @param {number} n - The number to calculate the factorial of. - * @returns {number} - The factorial of n. + * @param n - The number to calculate the factorial of. + * @returns - The factorial of n. */ const factorial = n => { if (n === 0 || n === 1) { @@ -117,5 +117,5 @@ module.exports = { sleep, sleepTaskFunction, waitPoolEvents, - waitWorkerEvents + waitWorkerEvents, }