UNPKG
tsoid
Version:
latest (1.1.2)
1.1.2
1.1.1
1.1.0
1.0.21
1.0.20
1.0.10
1.0.9
1.0.6
1.0.4
1.0.3
1.0.1
1.0.0
0.0.1
Typed functional library to deal with async operations.
tsoid
/
dist
/
src
/
utils
/
__tests__
/
id.test.js
10 lines
(9 loc)
•
301 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
"use strict"
;
Object
.
defineProperty
(
exports
,
"__esModule"
, {
value
:
true
});
const
index_1 =
require
(
"../../index"
);
describe
(
'id'
,
() =>
{
it
(
'Should return the argument'
,
() =>
{
expect
(index_1.
id
(
1
)).
toBe
(
1
);
expect
(index_1.
id
(
new
Error
(
''
))).
toBeInstanceOf
(
Error
); }); });