From a741efd4ed35ab274e9bdaa451bfa24604cd0bf6 Mon Sep 17 00:00:00 2001 From: Justin Beckwith Date: Wed, 12 Dec 2018 08:39:34 -0800 Subject: [PATCH] fix: fix the unit tests (#161) --- .gitignore | 2 ++ test/test.ts | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index adec40f..f0d11f9 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,5 @@ package-lock.json build package-lock.json __pycache__ +.coverage +.nyc_output diff --git a/test/test.ts b/test/test.ts index fe59102..c13c79b 100644 --- a/test/test.ts +++ b/test/test.ts @@ -884,7 +884,7 @@ describe('gcs-resumable-upload', () => { const scope = nock(REQ_OPTS.url).get(queryPath).reply(200); up.getRequestStream( REQ_OPTS, (requestStream: stream.Readable&{callback: Function}) => { - assert.strictEqual(requestStream.callback.toString(), '() => { }'); + assert.strictEqual(typeof requestStream.callback, 'function'); done(); }); });