remove leftover nocking (#33791)
This commit is contained in:
@@ -1,30 +1,11 @@
|
|||||||
import fs from 'fs/promises'
|
import { jest } from '@jest/globals'
|
||||||
import path from 'path'
|
|
||||||
import { fileURLToPath } from 'url'
|
|
||||||
|
|
||||||
import { beforeAll, jest } from '@jest/globals'
|
|
||||||
import nock from 'nock'
|
|
||||||
|
|
||||||
import { getDOM, getJSON } from '../helpers/e2etest.js'
|
import { getDOM, getJSON } from '../helpers/e2etest.js'
|
||||||
import enterpriseServerReleases from '../../lib/enterprise-server-releases.js'
|
import enterpriseServerReleases from '../../lib/enterprise-server-releases.js'
|
||||||
|
|
||||||
const __dirname = path.dirname(fileURLToPath(import.meta.url))
|
|
||||||
|
|
||||||
describe('featuredLinks', () => {
|
describe('featuredLinks', () => {
|
||||||
jest.setTimeout(3 * 60 * 1000)
|
jest.setTimeout(3 * 60 * 1000)
|
||||||
|
|
||||||
beforeAll(async () => {
|
|
||||||
const packagesFeedFixturePayload = await fs.readFile(
|
|
||||||
path.join(__dirname, '../fixtures/github-blog-feed-packages-2021.xml'),
|
|
||||||
'utf-8'
|
|
||||||
)
|
|
||||||
nock('https://github.blog')
|
|
||||||
.get('/changelog/label/packages/feed')
|
|
||||||
.reply(200, packagesFeedFixturePayload)
|
|
||||||
})
|
|
||||||
|
|
||||||
afterAll(() => nock.cleanAll())
|
|
||||||
|
|
||||||
describe('rendering', () => {
|
describe('rendering', () => {
|
||||||
test('non-TOC pages do not have intro links', async () => {
|
test('non-TOC pages do not have intro links', async () => {
|
||||||
const $ = await getDOM('/en/get-started/quickstart/set-up-git')
|
const $ = await getDOM('/en/get-started/quickstart/set-up-git')
|
||||||
|
|||||||
Reference in New Issue
Block a user