From 5112ee954053651bf0f706f1023e5a940de86654 Mon Sep 17 00:00:00 2001 From: Jerry Kurian Date: Mon, 12 Aug 2019 11:08:53 -0400 Subject: [PATCH] Types --- src/functions/functions.spec.ts | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/functions/functions.spec.ts b/src/functions/functions.spec.ts index 6fe8384..6d1b31e 100644 --- a/src/functions/functions.spec.ts +++ b/src/functions/functions.spec.ts @@ -1457,7 +1457,9 @@ test.cb("accumulator() rolling with key", t => { t.deepEqual(flush, flushes[chunkIndex]); chunkIndex++; }) - .on("error", (e: any) => t.end) + .on("error", (e: any) => { + t.end(e); + }) .on("end", () => { t.end(); }); @@ -1501,7 +1503,9 @@ test.cb("accumulator() sliding", t => { t.deepEqual(flush, flushes[chunkIndex]); chunkIndex++; }) - .on("error", (e: any) => t.end) + .on("error", (e: any) => { + t.end(e); + }) .on("end", () => { t.end(); }); @@ -1556,7 +1560,9 @@ test.cb("accumulator() sliding with key", t => { t.deepEqual(flush, flushes[chunkIndex]); chunkIndex++; }) - .on("error", (e: any) => t.end) + .on("error", (e: any) => { + t.end(e); + }) .on("end", () => { t.end(); });