From 3d43ee04fb32c2138358c21958b885681add5172 Mon Sep 17 00:00:00 2001 From: Benjamin Date: Sun, 6 Jan 2019 14:23:01 -0800 Subject: [PATCH] fix: should not include / --- test/src/nyc-tap.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/src/nyc-tap.js b/test/src/nyc-tap.js index 8502f3bf3..cbc9057f6 100644 --- a/test/src/nyc-tap.js +++ b/test/src/nyc-tap.js @@ -247,7 +247,7 @@ describe('nyc', function () { ).parse()) nyc['_handleJs'] = (code, options) => { - if (options.filename.indexOf('/check-instrumented.es6') !== -1) { + if (options.filename.indexOf('check-instrumented.es6') !== -1) { required.es6 = true } if (options.filename.indexOf('check-instrumented.foo.bar') !== -1) {