UNPKG
@mxmitch/lotide
Version:
latest (1.0.1)
1.0.1
1.0.0
A mini clone of the [Lodash](https://lodash.com) library.
github.com/mxmitch/lotide
mxmitch/lotide
@mxmitch/lotide
/
test
/
tailTest.js
11 lines
(10 loc)
•
276 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
const
assert =
require
(
'chai'
).
assert
;
const
tail =
require
(
'../tail'
);
describe
(
"#tail"
,
() =>
{
it
(
"returns [2, 3] for [1, 2, 3]"
,
() =>
{ assert.
deepEqual
(
tail
([
1
,
2
,
3
]), [
2
,
3
]); });
it
(
"returns [] for []"
,
() =>
{ assert.
deepEqual
(
tail
([]), []); }); });