1
0
mirror of synced 2025-12-21 19:06:49 -05:00

frontpage: add npm documentation links (#22173)

Co-authored-by: Laura Coursen <lecoursen@github.com>
This commit is contained in:
Edward Thomson
2021-10-15 18:16:03 -04:00
committed by GitHub
parent ae4ec971c0
commit dba3b44ea9
2 changed files with 6 additions and 0 deletions

View File

@@ -55,4 +55,9 @@ externalProducts:
name: CodeQL name: CodeQL
href: 'https://codeql.github.com/docs' href: 'https://codeql.github.com/docs'
external: true external: true
npm:
id: npm
name: npm
href: 'https://docs.npmjs.com/'
external: true
--- ---

View File

@@ -34,6 +34,7 @@ describe('sidebar', () => {
expect( expect(
$homePage('[data-testid=sidebar] a[href="https://codeql.github.com/docs"]') $homePage('[data-testid=sidebar] a[href="https://codeql.github.com/docs"]')
).toHaveLength(1) ).toHaveLength(1)
expect($homePage('[data-testid=sidebar] a[href="https://docs.npmjs.com/"]')).toHaveLength(1)
}) })
test('adds `data-is-current-page` and `data-is-active-category` properties to the sidebar link for the current page', async () => { test('adds `data-is-current-page` and `data-is-active-category` properties to the sidebar link for the current page', async () => {