From 9d73f5adefe4c9b094156272cca7ea6c366d2234 Mon Sep 17 00:00:00 2001 From: "James M. Greene" Date: Tue, 15 Dec 2020 16:40:01 -0600 Subject: [PATCH] Remove accidentally committed console logging from test (#16813) Co-authored-by: Chiedo John <2156688+chiedo@users.noreply.github.com> --- tests/unit/pages.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/tests/unit/pages.js b/tests/unit/pages.js index bb405b5e9c61..5a516e8a812d 100644 --- a/tests/unit/pages.js +++ b/tests/unit/pages.js @@ -149,12 +149,7 @@ describe('pages module', () => { }) test('has an identical key list to the deep permalinks of the array', async () => { - const allPermalinks = pages.flatMap(page => page.permalinks.map(pl => { - if (pl.href === '/es/enterprise-server@2.22/insights/installing-and-configuring-github-insights/updating-github-insights') { - console.log('Source page:', page.relativePath) - } - return pl.href - })).sort() + const allPermalinks = pages.flatMap(page => page.permalinks.map(pl => pl.href)).sort() const allPageUrls = Object.keys(pageMap).sort() expect(allPageUrls).toEqual(allPermalinks)