Skip to content

Commit 20da474

Browse files
committed
test(first): test "first" instead of "head"
(cherry picked from commit 493e8d6)
1 parent 2a723e9 commit 20da474

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

index.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@ import {
1717
filterFirst,
1818
find,
1919
findIndex,
20+
first,
2021
findLast,
2122
findLastIndex,
2223
fold,
2324
fold1,
2425
foldMap,
2526
forEach,
2627
groupByIdentity,
27-
head,
2828
initial,
2929
isArray,
3030
isArrayLike,
@@ -69,9 +69,9 @@ test("isArrayLike", t => {
6969
t.false(isArrayLike(3));
7070
});
7171

72-
test("head", t => {
73-
t.is(head([1, 2, 3]), 1);
74-
t.is(head([]), null);
72+
test("first", t => {
73+
t.is(first([1, 2, 3]), 1);
74+
t.is(first([]), null);
7575
});
7676

7777
test("tail", t => {

0 commit comments

Comments
 (0)