Skip to content

Commit

Permalink
Maths
Browse files Browse the repository at this point in the history
  • Loading branch information
flintinatux committed Jan 26, 2018
1 parent 04ab036 commit c59e783
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/partialRight.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ const { expect } = require('chai')
const { partialRight } = require('..')

describe('partialRight', () => {
const sum = (a, b, c, d) =>
const maths = (a, b, c, d) =>
a + b * c + d

it('partially applies right-side args to a function', () =>
expect(partialRight(sum, [ 1, 2 ])(3, 4)).to.equal(9)
expect(partialRight(maths, [ 1, 2 ])(3, 4)).to.equal(9)
)

it('is curried', () =>
expect(partialRight(sum)([ 1, 2 ])(3, 4)).to.equal(9)
expect(partialRight(maths)([ 1, 2 ])(3, 4)).to.equal(9)
)
})

0 comments on commit c59e783

Please sign in to comment.