Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
timneutkens committed Jun 30, 2021
1 parent 993c7cc commit 0f8f9a2
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion test/integration/image-optimizer/test/get-max-age.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* eslint-env jest */
import { getMaxAge } from '../../../../packages/next/dist/next-server/server/image-optimizer.js'
import { getMaxAge } from '../../../../packages/next/dist/server/image-optimizer.js'

describe('getMaxAge', () => {
it('should return default when no cache-control provided', () => {
Expand Down
2 changes: 1 addition & 1 deletion test/isolated/config.unit.test.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-env jest */

import { join } from 'path'
import loadConfig from 'next/dist/next-server/server/config'
import loadConfig from 'next/dist/server/config'
import { PHASE_DEVELOPMENT_SERVER } from 'next/constants'

const pathToConfig = join(__dirname, '_resolvedata', 'without-function')
Expand Down
4 changes: 2 additions & 2 deletions test/isolated/require-page.unit.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import {
requirePage,
getPagePath,
pageNotFoundError,
} from 'next/dist/next-server/server/require'
import { normalizePagePath } from 'next/dist/next-server/server/normalize-page-path'
} from 'next/dist/server/require'
import { normalizePagePath } from 'next/dist/server/normalize-page-path'

const sep = '/'
const distDir = join(__dirname, '_resolvedata')
Expand Down
2 changes: 1 addition & 1 deletion test/unit/find-page-file.unit.test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-env jest */
import { findPageFile } from 'next/dist/server/lib/find-page-file'
import { normalizePagePath } from 'next/dist/next-server/server/normalize-page-path'
import { normalizePagePath } from 'next/dist/server/normalize-page-path'

import { join } from 'path'

Expand Down
2 changes: 1 addition & 1 deletion test/unit/next-server-utils.unit.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* eslint-env jest */
import { cleanAmpPath } from 'next/dist/next-server/server/utils'
import { cleanAmpPath } from 'next/dist/server/utils'

// convenience function so tests can be aligned neatly
// and easy to eyeball
Expand Down

0 comments on commit 0f8f9a2

Please sign in to comment.