Skip to content

Commit b7bbc70

Browse files
authored
Updating product landing page to include CodeQL (#18150)
1 parent c705ab2 commit b7bbc70

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

lib/all-products.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,12 @@ const externalProducts = {
8080
name: 'Electron',
8181
href: 'https://electronjs.org/docs',
8282
external: true
83+
},
84+
codeql: {
85+
id: 'codeql',
86+
name: 'CodeQL',
87+
href: 'https://codeql.github.com/docs',
88+
external: true
8389
}
8490
}
8591

tests/rendering/sidebar.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,11 @@ describe('sidebar', () => {
2323
expect($githubPage('.sidebar li.sidebar-product > a').text().trim()).toBe('GitHub.com')
2424
})
2525

26-
test('includes links to external products like the CLI, Atom, and Electron', async () => {
26+
test('includes links to external products like the CLI, Atom, Electron, and CodeQL', async () => {
2727
expect($homePage('.sidebar a[href="https://cli.github.com/manual"]')).toHaveLength(1)
2828
expect($homePage('.sidebar a[href="https://atom.io/docs"]')).toHaveLength(1)
2929
expect($homePage('.sidebar a[href="https://electronjs.org/docs"]')).toHaveLength(1)
30+
expect($homePage('.sidebar a[href="https://codeql.github.com/docs"]')).toHaveLength(1)
3031
})
3132

3233
test('adds an `is-current-page` class to the sidebar link to the current page', async () => {

0 commit comments

Comments
 (0)