From 525be6811da95eff7298e673ebdaf231eb811b7e Mon Sep 17 00:00:00 2001 From: Andy Date: Wed, 19 Apr 2017 10:09:20 -0700 Subject: [PATCH] node: Fix `typeof` error (#15987) --- types/node/v6/node-tests.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/node/v6/node-tests.ts b/types/node/v6/node-tests.ts index 2348bd2dd6..0e03b1d94a 100644 --- a/types/node/v6/node-tests.ts +++ b/types/node/v6/node-tests.ts @@ -446,7 +446,7 @@ function stream_readable_pipe_test() { assert(typeof r.bytesRead === 'number'); assert(typeof r.path === 'string'); - assert(typeof rs.path === 'Buffer'); + assert(rs.path instanceof Buffer); r.pipe(z).pipe(w);