deno.land / x / rambda@v9.1.1 / source / binary.spec.js

binary.spec.js
نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import { binary } from './binary.js'
test('happy', () => { const result = binary(function ( x, y, z ){ expect(arguments).toHaveLength(2) expect(z).toBeUndefined() expect(x).toBe(10) expect(y).toBe(20)
return x + y })( 10, 20, 30 ) expect(result).toBe(30)})
rambda

Version Info

Tagged at
2 months ago