From f1a4598cc1b01c5ebd7108efcb38668977fdea7f Mon Sep 17 00:00:00 2001 From: Andrey Lushnikov Date: Thu, 27 Jul 2017 17:32:02 -0700 Subject: [PATCH] Clarify coverage report --- test/test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test.js b/test/test.js index 80b2bf5d7fb..3a0580edbaa 100644 --- a/test/test.js +++ b/test/test.js @@ -1407,7 +1407,7 @@ describe('Puppeteer', function() { }); if (process.env.COVERAGE) { - describe('API', function(){ + describe('COVERAGE', function(){ let coverage = helper.publicAPICoverage(); let disabled = new Set(); if (headless) { @@ -1418,7 +1418,7 @@ if (process.env.COVERAGE) { } for (let method of coverage.keys()) { - (disabled.has(method) ? xit : it)(`public method '${method}' was tested`, SX(async function(){ + (disabled.has(method) ? xit : it)(`public method '${method}' should be called`, SX(async function(){ expect(coverage.get(method)).toBe(true); })); }