Default to an objectMode: true instance but allow creating other instances with other defaults

This commit is contained in:
Lewis Diamond
2020-08-03 18:54:40 -04:00
parent 4aac05c9c0
commit 87c44de799
32 changed files with 241 additions and 76 deletions

View File

@@ -1,7 +1,6 @@
import test from "ava";
import { collected } from "../../src/utils";
import { strom } from "../../src";
const { fromArray, collect } = strom({ objectMode: true });
import { fromArray, collect } from "../../src";
test("collected returns a promise for the first data point", async t => {
const data = collected(fromArray([1, 2, 3, 4]).pipe(collect()));