From 81a2af23356e41a1e7192b728b5592acfe0d9e3b Mon Sep 17 00:00:00 2001 From: Kevin Van Der Werff Date: Tue, 22 Oct 2019 15:32:45 +0200 Subject: [PATCH] :art: :white_check_mark: - add whitelines to end - add curried version of partiallyIncludesElOf - add non-curried version includesElOf --- test/pure.test.js | 6 +++--- utils/pure.js | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/pure.test.js b/test/pure.test.js index 4afb9b6..0a6432e 100644 --- a/test/pure.test.js +++ b/test/pure.test.js @@ -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) -}) \ No newline at end of file +}) diff --git a/utils/pure.js b/utils/pure.js index bc5fe26..710df32 100644 --- a/utils/pure.js +++ b/utils/pure.js @@ -69,4 +69,4 @@ export const transformToResources = categories => { return R.map(category => R.over(resourcesLens, R.map(addCleanTitleAndPath(category.slug)), category), categories) -} \ No newline at end of file +}