We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents db100ba + 92b9ae6 commit f53df80Copy full SHA for f53df80
1 file changed
tests/unit/pages.js
@@ -149,12 +149,7 @@ describe('pages module', () => {
149
})
150
151
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/enterprise-server@2.22/insights/installing-and-configuring-github-insights/updating-github-insights') {
154
- console.log('Source page:', page.relativePath)
155
- }
156
- return pl.href
157
- })).sort()
+ const allPermalinks = pages.flatMap(page => page.permalinks.map(pl => pl.href)).sort()
158
const allPageUrls = Object.keys(pageMap).sort()
159
160
expect(allPageUrls).toEqual(allPermalinks)
0 commit comments