From 0f8f9a2cecf57b36bcd1395583b914966294f39e Mon Sep 17 00:00:00 2001 From: Tim Neutkens Date: Wed, 30 Jun 2021 12:43:27 +0200 Subject: [PATCH] Update tests --- test/integration/image-optimizer/test/get-max-age.test.js | 2 +- test/isolated/config.unit.test.js | 2 +- test/isolated/require-page.unit.test.js | 4 ++-- test/unit/find-page-file.unit.test.js | 2 +- test/unit/next-server-utils.unit.test.js | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/test/integration/image-optimizer/test/get-max-age.test.js b/test/integration/image-optimizer/test/get-max-age.test.js index b790a456228bd..c842ba9fd0aec 100644 --- a/test/integration/image-optimizer/test/get-max-age.test.js +++ b/test/integration/image-optimizer/test/get-max-age.test.js @@ -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', () => { diff --git a/test/isolated/config.unit.test.js b/test/isolated/config.unit.test.js index afaf04092ad76..61d46f4b968fb 100644 --- a/test/isolated/config.unit.test.js +++ b/test/isolated/config.unit.test.js @@ -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') diff --git a/test/isolated/require-page.unit.test.js b/test/isolated/require-page.unit.test.js index ba3c08b63d326..f396a7faa6657 100644 --- a/test/isolated/require-page.unit.test.js +++ b/test/isolated/require-page.unit.test.js @@ -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') diff --git a/test/unit/find-page-file.unit.test.js b/test/unit/find-page-file.unit.test.js index 93d6d932d0c5a..7664b1eae424a 100644 --- a/test/unit/find-page-file.unit.test.js +++ b/test/unit/find-page-file.unit.test.js @@ -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' diff --git a/test/unit/next-server-utils.unit.test.js b/test/unit/next-server-utils.unit.test.js index c573a3240b3d6..62bde372e8f35 100644 --- a/test/unit/next-server-utils.unit.test.js +++ b/test/unit/next-server-utils.unit.test.js @@ -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