Skip to content

Commit 5cfefe1

Browse files
committed
test: wrap function under test
1 parent 428e2a0 commit 5cfefe1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/main.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ tap.test("Sink() - .write() - timeout", async (t) => {
166166
const writeTo = await sink.write(file, "application/json");
167167

168168
t.rejects(
169-
pipe(writeFrom, writeTo),
169+
() => pipe(writeFrom, writeTo),
170170
/network timeout at/,
171171
"should reject on timeout",
172172
);

0 commit comments

Comments
 (0)