Skip to content

Commit

Permalink
chore: Add additional test case to .collect() (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
giraugh authored May 7, 2024
2 parents 4d6d924 + 28f535b commit 2db938b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/transforms.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,14 @@ describe.concurrent("stream transforms", () => {

expect(await s.toArray({ atoms: true })).toEqual([$.error(1), $.ok([2, 3])]);
});

test("single unknown", async ({ expect }) => {
expect.assertions(1);

const s = $.from([$.unknown(1, []), $.ok(2), $.ok(3)]).collect();

expect(await s.toArray({ atoms: true })).toEqual([$.unknown(1, []), $.ok([2, 3])]);
});
});

describe.concurrent("mapError", () => {
Expand Down

0 comments on commit 2db938b

Please sign in to comment.