Skip to content

Commit ce9d3b9

Browse files
committed
style: format with standard
1 parent 8548ef1 commit ce9d3b9

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

Cache/Memoize.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,4 @@ const memoize = (func) => {
5757
}
5858
}
5959

60-
export { memoize }
60+
export { memoize }

Cache/test/Memoize.test.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,15 @@ const multipleFactorials = (arr) => arr.map(factorial)
2020

2121
/**
2222
* @title implementation of union function
23-
* @param {Set} sets
23+
* @param {Set} sets
2424
* @return {new Set}
2525
*/
26-
function union(...sets) {
26+
function union (...sets) {
2727
return new Set(
2828
sets.reduce((flatArray, set) => [...flatArray, ...set], [])
2929
)
3030
}
3131

32-
3332
describe('Testing Memoize', () => {
3433
it('expects the fibonacci function to use the cache on the second call', () => {
3534
const memoFibonacci = memoize(fibonacci)
@@ -52,7 +51,7 @@ describe('Testing Memoize', () => {
5251
it('expects the multipleFactorials function to use the cache on the second call', () => {
5352
const memoMultipleFactorials = memoize(multipleFactorials)
5453
const input = [2, 3, 4, 5]
55-
54+
5655
expect(memoMultipleFactorials(input)).toEqual([2, 6, 24, 120])
5756
expect(memoMultipleFactorials(input)).toEqual(multipleFactorials(input))
5857
})

0 commit comments

Comments
 (0)