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' ) }) })