Skip to content

Commit 5c4f233

Browse files
authored
repo sync
2 parents 58e5279 + 50835f3 commit 5c4f233

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
@@ -43,6 +43,12 @@ sortedProductIds.forEach(productId => {
4343
})
4444

4545
const externalProducts = {
46+
cli: {
47+
id: 'cli',
48+
name: 'GitHub CLI',
49+
href: 'https://cli.github.com/manual',
50+
external: true
51+
},
4652
atom: {
4753
id: 'atom',
4854
name: 'Atom',

tests/rendering/sidebar.js

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

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

0 commit comments

Comments
 (0)