UNPKG
geninq
Version:
latest (0.0.3)
0.0.3
0.0.2
0.0.1
A JavaScript version of the Linq library for Generators
github.com/PaulPopat/geninq
PaulPopat/geninq
geninq
/
src
/
functions
/
prepend.test.ts
12 lines
(10 loc)
•
242 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
import
"./prepend"
;
import
"./array"
;
import
{
It
}
from
"../test-utils"
;
It
(
"Adds an element"
,
(
s
) =>
s.
prepend
(
4
).
array
(), [
4
,
1
,
2
,
3
]);
It
(
"Adds an element of other type"
,
(
s
) =>
s.
prepend
(
"test"
).
array
(), [
"test"
,
1
,
2
,
3
, ]);