From 20da474384ae69e3b58f194c0ce4a05a6da89e4f Mon Sep 17 00:00:00 2001 From: Daniel Cassidy Date: Tue, 9 Mar 2021 06:56:33 +0000 Subject: [PATCH] test(first): test "first" instead of "head" (cherry picked from commit 493e8d657d2dc18224a157a0391d1ade9c160dc7) --- index.test.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/index.test.ts b/index.test.ts index f948fa5a..a83dca61 100644 --- a/index.test.ts +++ b/index.test.ts @@ -17,6 +17,7 @@ import { filterFirst, find, findIndex, + first, findLast, findLastIndex, fold, @@ -24,7 +25,6 @@ import { foldMap, forEach, groupByIdentity, - head, initial, isArray, isArrayLike, @@ -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 => {