Skip to content

Commit 5d0e55f

Browse files
committed
test(contains): add contains test
1 parent b946177 commit 5d0e55f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

index.test.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import test from "ava";
22
import {
3+
contains,
34
dropWhile,
45
empty,
56
exclude,
@@ -185,6 +186,11 @@ test("foldMap", t => {
185186
);
186187
});
187188

189+
test("contains", t => {
190+
t.true(contains([1, 2, 3], 1));
191+
t.false(contains([1, 2, 3], 0));
192+
});
193+
188194
test("findIndex", t => {
189195
t.is(
190196
findIndex([1, 2, 3, 4, 3, 2, 1], n => n >= 3),

0 commit comments

Comments
 (0)