X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=tests%2Ftest-utils.js;h=ceaff7be4c605140c546d1773493b56dcfb1e309;hb=024daf59a8f93e67b7a307d1b5690ba564c80bab;hp=24b01e442ef7b0c63afd1a28d3e5261e82c34d6d;hpb=70726c2810ba4768dae5ae1f40ed6ddcecf142ba;p=poolifier.git diff --git a/tests/test-utils.js b/tests/test-utils.js index 24b01e44..ceaff7be 100644 --- a/tests/test-utils.js +++ b/tests/test-utils.js @@ -81,7 +81,7 @@ class TestUtils { * @returns {number} - The nth fibonacci number. */ static fibonacci (n) { - if (n <= 1) return 1 + if (n <= 1) return n return TestUtils.fibonacci(n - 1) + TestUtils.fibonacci(n - 2) }