Skip to content

Commit

Permalink
Merge pull request #13 from vitorabner/feature/add-curry-tests
Browse files Browse the repository at this point in the history
test: add curry tests for pokeprop
  • Loading branch information
vitorabner committed May 2, 2017
2 parents 0895aa3 + 8ffb2d5 commit ddbf6e8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/pokeprop.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,9 @@ test('pokeprop: pick multiplies properties from an object with multiples propert
}
})
})

test('pokeprop: pick lib property from an object with one property using curried pokeprop', t => {
const object = { lib: 'pokeprop' }
const picked = pokeprop(['lib'])(object)
t.deepEqual(picked, object)
})

0 comments on commit ddbf6e8

Please sign in to comment.