Skip to content

Commit dc1047d

Browse files
authoredJun 25, 2019
Upgrade dependencies to latest versions. (trekhleb#367)

File tree

4 files changed

+1197
-3690
lines changed

4 files changed

+1197
-3690
lines changed
 

‎package-lock.json

+1,187-3,675
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json

+9-9
Original file line numberDiff line numberDiff line change
@@ -33,17 +33,17 @@
3333
},
3434
"homepage": "https://github.com/trekhleb/javascript-algorithms#readme",
3535
"devDependencies": {
36-
"@babel/cli": "^7.2.3",
37-
"@babel/preset-env": "^7.3.4",
38-
"@types/jest": "^24.0.9",
39-
"eslint": "^5.15.1",
36+
"@babel/cli": "^7.4.4",
37+
"@babel/preset-env": "^7.4.5",
38+
"@types/jest": "^24.0.15",
39+
"eslint": "^6.0.1",
4040
"eslint-config-airbnb": "^17.1.0",
41-
"eslint-plugin-import": "^2.16.0",
42-
"eslint-plugin-jest": "^22.3.0",
41+
"eslint-plugin-import": "^2.18.0",
42+
"eslint-plugin-jest": "^22.7.1",
4343
"eslint-plugin-jsx-a11y": "^6.2.1",
44-
"eslint-plugin-react": "^7.12.4",
45-
"husky": "^1.3.1",
46-
"jest": "^24.3.1"
44+
"eslint-plugin-react": "^7.14.2",
45+
"husky": "^2.5.0",
46+
"jest": "^24.8.0"
4747
},
4848
"dependencies": {}
4949
}

‎src/algorithms/math/fibonacci/__test__/fibonacciNthClosedForm.test.js

-5
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,5 @@ describe('fibonacciClosedForm', () => {
2222
expect(fibonacciNthClosedForm(30)).toBe(832040);
2323
expect(fibonacciNthClosedForm(50)).toBe(12586269025);
2424
expect(fibonacciNthClosedForm(70)).toBe(190392490709135);
25-
expect(fibonacciNthClosedForm(71)).toBe(308061521170129);
26-
expect(fibonacciNthClosedForm(72)).toBe(498454011879264);
27-
expect(fibonacciNthClosedForm(73)).toBe(806515533049393);
28-
expect(fibonacciNthClosedForm(74)).toBe(1304969544928657);
29-
expect(fibonacciNthClosedForm(75)).toBe(2111485077978050);
3025
});
3126
});

‎src/algorithms/math/fibonacci/fibonacciNthClosedForm.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* @return {number}
77
*/
88
export default function fibonacciClosedForm(position) {
9-
const topMaxValidPosition = 75;
9+
const topMaxValidPosition = 70;
1010

1111
// Check that position is valid.
1212
if (position < 1 || position > topMaxValidPosition) {

0 commit comments

Comments
 (0)
Please sign in to comment.