Skip to content

Commit f53df80

Browse files
authored
repo sync
2 parents db100ba + 92b9ae6 commit f53df80

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

tests/unit/pages.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -149,12 +149,7 @@ describe('pages module', () => {
149149
})
150150

151151
test('has an identical key list to the deep permalinks of the array', async () => {
152-
const allPermalinks = pages.flatMap(page => page.permalinks.map(pl => {
153-
if (pl.href === '/es/[email protected]/insights/installing-and-configuring-github-insights/updating-github-insights') {
154-
console.log('Source page:', page.relativePath)
155-
}
156-
return pl.href
157-
})).sort()
152+
const allPermalinks = pages.flatMap(page => page.permalinks.map(pl => pl.href)).sort()
158153
const allPageUrls = Object.keys(pageMap).sort()
159154

160155
expect(allPageUrls).toEqual(allPermalinks)

0 commit comments

Comments
 (0)