Skip to content

Commit

Permalink
Update footer.js
Browse files Browse the repository at this point in the history
  • Loading branch information
bevns authored Mar 14, 2022
1 parent ea49b45 commit bb23efe
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/rendering/footer.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
import { getDOM } from '../helpers/supertest.js'
import enterpriseServerReleases from '../../lib/enterprise-server-releases.js'
import nonEnterpriseDefaultVersion from '../../lib/non-enterprise-default-version.js'
import { jest } from '@jest/globals'

describe('footer', () => {
jest.setTimeout(10 * 60 * 1000)

describe('"contact us" link', () => {
test('leads to support and articles', async () => {
test('leads to support from articles', async () => {
const $ = await getDOM(`/en/${nonEnterpriseDefaultVersion}/github`)
expect($('a#contact-us').attr('href')).toBe('https://support.github.com/contact')
})
Expand All @@ -19,7 +18,7 @@ describe('footer', () => {
})

describe('"contact us" link with nextjs', () => {
test('leads to dotcom support on dotcom pages', async () => {
test('leads to support from articles', async () => {
const $ = await getDOM(`/en/${nonEnterpriseDefaultVersion}/github?nextjs=`)
expect($('a#contact-us').attr('href')).toBe('https://support.github.com/contact')
})
Expand Down

0 comments on commit bb23efe

Please sign in to comment.