Skip to content

Commit

Permalink
test(first): test "first" instead of "head"
Browse files Browse the repository at this point in the history
  • Loading branch information
djcsdy committed Mar 9, 2021
1 parent 8785338 commit 493e8d6
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 @@ -10,12 +10,12 @@ import {
filterFirst,
find,
findIndex,
first,
fold,
fold1,
foldMap,
forEach,
groupByIdentity,
head,
initial,
isArray,
isArrayLike,
Expand Down Expand Up @@ -43,9 +43,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 493e8d6

Please sign in to comment.