UNPKG
@s-awaken/lotide
Version:
latest (1.0.3)
1.0.3
1.0.2
1.0.1
1.0.0
Syrym's project for Lighthouse Labs Bootcamp
github.com/s-awaken/lotide
s-awaken/lotide
@s-awaken/lotide
/
test
/
head.test.js
14 lines
(10 loc)
•
283 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
const
assert =
require
(
'chai'
).
assert
;
const
head =
require
(
'../head'
);
describe
(
"#head"
,
() =>
{
it
(
"returns 1 for [1, 2, 3]"
,
() =>
{ assert.
strictEqual
(
head
([
1
,
2
,
3
]),
1
); });
it
(
"returns '5' for ['5']"
,
() =>
{ assert.
strictEqual
(
head
([
"5"
]),
"5"
); }); });