Skip to content

Commit 5960249

Browse files
author
Peter Bengtsson
authored
remove leftover nocking (#33791)
1 parent 0f796df commit 5960249

File tree

1 file changed

+1
-20
lines changed

1 file changed

+1
-20
lines changed

tests/content/featured-links.js

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,11 @@
1-
import fs from 'fs/promises'
2-
import path from 'path'
3-
import { fileURLToPath } from 'url'
4-
5-
import { beforeAll, jest } from '@jest/globals'
6-
import nock from 'nock'
1+
import { jest } from '@jest/globals'
72

83
import { getDOM, getJSON } from '../helpers/e2etest.js'
94
import enterpriseServerReleases from '../../lib/enterprise-server-releases.js'
105

11-
const __dirname = path.dirname(fileURLToPath(import.meta.url))
12-
136
describe('featuredLinks', () => {
147
jest.setTimeout(3 * 60 * 1000)
158

16-
beforeAll(async () => {
17-
const packagesFeedFixturePayload = await fs.readFile(
18-
path.join(__dirname, '../fixtures/github-blog-feed-packages-2021.xml'),
19-
'utf-8'
20-
)
21-
nock('https://github.blog')
22-
.get('/changelog/label/packages/feed')
23-
.reply(200, packagesFeedFixturePayload)
24-
})
25-
26-
afterAll(() => nock.cleanAll())
27-
289
describe('rendering', () => {
2910
test('non-TOC pages do not have intro links', async () => {
3011
const $ = await getDOM('/en/get-started/quickstart/set-up-git')

0 commit comments

Comments
 (0)