Skip to content

Commit

Permalink
Remove unused variables
Browse files Browse the repository at this point in the history
  • Loading branch information
timneutkens committed Aug 8, 2023
1 parent bfe6d04 commit f465437
Showing 1 changed file with 1 addition and 11 deletions.
Original file line number Diff line number Diff line change
@@ -1,24 +1,17 @@
/* eslint-env jest */

import http from 'http'
import fs from 'fs-extra'
import { join } from 'path'
import cheerio from 'cheerio'
import { nextServer, startApp, waitFor } from 'next-test-utils'
import {
fetchViaHTTP,
findPort,
nextBuild,
renderViaHTTP,
} from 'next-test-utils'
import { fetchViaHTTP, nextBuild, renderViaHTTP } from 'next-test-utils'

const appDir = join(__dirname, '..')
let server
let nextApp
let appPort
let buildId
let requiredFilesManifest
let errors = []

describe('Required Server Files', () => {
beforeAll(async () => {
Expand Down Expand Up @@ -428,21 +421,18 @@ describe('Required Server Files', () => {
})

it('should bubble error correctly for gip page', async () => {
errors = []
const res = await fetchViaHTTP(appPort, '/errors/gip', { crash: '1' })
expect(res.status).toBe(500)
expect(await res.text()).toBe('Internal Server Error')
})

it('should bubble error correctly for gssp page', async () => {
errors = []
const res = await fetchViaHTTP(appPort, '/errors/gssp', { crash: '1' })
expect(res.status).toBe(500)
expect(await res.text()).toBe('Internal Server Error')
})

it('should bubble error correctly for gsp page', async () => {
errors = []
const res = await fetchViaHTTP(appPort, '/errors/gsp/crash')
expect(res.status).toBe(500)
expect(await res.text()).toBe('Internal Server Error')
Expand Down

0 comments on commit f465437

Please sign in to comment.