Skip to content

Commit

Permalink
test(first): test "first" instead of "head"
Browse files Browse the repository at this point in the history
(cherry picked from commit 493e8d6)
  • Loading branch information
djcsdy committed Dec 5, 2023
1 parent 2a723e9 commit 20da474
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ import {
filterFirst,
find,
findIndex,
first,
findLast,
findLastIndex,
fold,
fold1,
foldMap,
forEach,
groupByIdentity,
head,
initial,
isArray,
isArrayLike,
Expand Down Expand Up @@ -69,9 +69,9 @@ test("isArrayLike", t => {
t.false(isArrayLike(3));
});

test("head", t => {
t.is(head([1, 2, 3]), 1);
t.is(head([]), null);
test("first", t => {
t.is(first([1, 2, 3]), 1);
t.is(first([]), null);
});

test("tail", t => {
Expand Down

0 comments on commit 20da474

Please sign in to comment.