Skip to content

Commit

Permalink
repo sync
Browse files Browse the repository at this point in the history
  • Loading branch information
Octomerger authored Nov 3, 2020
2 parents 58e5279 + 50835f3 commit 5c4f233
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions lib/all-products.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,12 @@ sortedProductIds.forEach(productId => {
})

const externalProducts = {
cli: {
id: 'cli',
name: 'GitHub CLI',
href: 'https://cli.github.com/manual',
external: true
},
atom: {
id: 'atom',
name: 'Atom',
Expand Down
3 changes: 2 additions & 1 deletion tests/rendering/sidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ describe('sidebar', () => {
expect($githubPage('.sidebar li.sidebar-product > a').text().trim()).toBe('GitHub.com')
})

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

0 comments on commit 5c4f233

Please sign in to comment.