UNPKG
npm-couple
Version:
latest (1.0.4)
1.0.4
1.0.3
1.0.1
A library to couple two objects.
www.github.com/ryansmith94/couple
ryansmith94/couple
npm-couple
/
spec
/
couple.coffee
12 lines
(10 loc)
•
274 B
text/coffeescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
couple = require(
'../build/couple'
)
# Tests normal couple.
describe(
'couple'
, () -> it(
'should call `mod` with `a` and `b`'
, () -> a = {} b = {} expect(couple((a, b) -> a)(a)(b)).toBe(a) expect(couple((a, b) -> b)(a)(b)).toBe(b) ) )