- add whitelines to end
- add curried version of partiallyIncludesElOf
- add non-curried version includesElOf
This commit is contained in:
Kevin Van Der Werff
2019-10-22 15:32:45 +02:00
parent 8273955316
commit 81a2af2335
2 changed files with 4 additions and 4 deletions

View File

@@ -7,7 +7,7 @@ test('includesElOf 1', () => {
})
test('includesElOf 2', () => {
expect(P.includesElOf([1, 2])([3])).toBeFalsy
expect(P.includesElOf([1, 2], [3])).toBeFalsy
})
test('includesElOf 3', () => {
@@ -23,7 +23,7 @@ test('partiallyIncludesElOf 1', () => {
})
test('partiallyIncludesElOf 2', () => {
expect(P.partiallyIncludesElOf(['aa', 'b'], ['a'])).toBeTruthy
expect(P.partiallyIncludesElOf(['aa', 'b'])(['a'])).toBeTruthy
})
test('partiallyIncludesElOf 3', () => {
@@ -38,4 +38,4 @@ test('get all tags', () => {
test('transform resources', () => {
expect(P.transformToResources(mockCategories)).toStrictEqual(mockOutput)
})
})

View File

@@ -69,4 +69,4 @@ export const transformToResources = categories => {
return R.map(category =>
R.over(resourcesLens, R.map(addCleanTitleAndPath(category.slug)), category),
categories)
}
}