Skip to content

Commit db0dc10

Browse files
author
David Chase
committed
bug(PRELUDE) fix filter params
1 parent 30a1481 commit db0dc10

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

prelude.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const chain = fn => xs => [].concat.apply([], xs.map(fn))
2424

2525
const of = Array.of.bind(Array)
2626

27-
const filter = xs => fn => xs.filter(fn)
27+
const filter = pred => xs => xs.filter(pred)
2828

2929
const prepend = a => b => a.concat(b)
3030

test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ const union = require('./index')
66

77

88
test('it works', function(t){
9-
const expected = path.join(__dirname, 'output/src/images/')
10-
const expected2 = path.join(__dirname, 'output/images/src/stuff/')
9+
const expected = path.join(__dirname, 'output/src/images')
10+
const expected2 = path.join(__dirname, 'output/images/src/stuff')
1111

1212
t.equal(union(path.join(__dirname, 'output'), path.join(__dirname, 'src/images')), expected)
1313
t.equal(union(path.join(__dirname, 'output/images'), path.join(__dirname, 'src/stuff')), expected2)

0 commit comments

Comments
 (0)