From 7b64dc7426d3006f58ce485e153c09b987b680ca Mon Sep 17 00:00:00 2001 From: devjiwonchoi Date: Tue, 6 Aug 2024 17:47:42 +0900 Subject: [PATCH] test: normalize-asset-prefix should return url if is url --- .../next/src/shared/lib/normalized-asset-prefix.test.ts | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/packages/next/src/shared/lib/normalized-asset-prefix.test.ts b/packages/next/src/shared/lib/normalized-asset-prefix.test.ts index cc344c3ea0062..6f8a0773db519 100644 --- a/packages/next/src/shared/lib/normalized-asset-prefix.test.ts +++ b/packages/next/src/shared/lib/normalized-asset-prefix.test.ts @@ -26,14 +26,9 @@ describe('normalizedAssetPrefix', () => { expect(normalizedAssetPrefix('path/to/asset')).toBe('/path/to/asset') }) - it('should return a URL without protocol when assetPrefix is a URL', () => { - // TODO: this is for comparison, remove this before PR merge - expect(normalizedAssetPrefix('https://example.com/path/to/asset')).not.toBe( - '/https://example.com/path/to/asset' - ) - + it('should return the URL when assetPrefix is a URL', () => { expect(normalizedAssetPrefix('https://example.com/path/to/asset')).toBe( - 'example.com/path/to/asset' + 'https://example.com/path/to/asset' ) }) })