UNPKG
@arrows/dispatch
Version:
latest (1.0.3)
1.0.3
1.0.2
1.0.1
1.0.0
0.2.5
0.2.4
0.2.3
0.2.2
0.2.0
0.1.0
Functional dispatch library
caderek.github.io/arrows/packages/dispatch/
caderek/arrows
@arrows/dispatch
/
src
/
identity.test.ts
11 lines
(8 loc)
•
222 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
import
identity
from
'./identity'
describe
(
'identity'
,
() =>
{
it
(
'always return value of the first argument'
,
() =>
{
const
result =
identity
(
1
)
const
expected =
1
expect
(result).
toEqual
(expected) }) })