Skip to content

Commit 7b64dc7

Browse files
committed
test: normalize-asset-prefix should return url if is url
1 parent c721b8c commit 7b64dc7

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

packages/next/src/shared/lib/normalized-asset-prefix.test.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,9 @@ describe('normalizedAssetPrefix', () => {
2626
expect(normalizedAssetPrefix('path/to/asset')).toBe('/path/to/asset')
2727
})
2828

29-
it('should return a URL without protocol when assetPrefix is a URL', () => {
30-
// TODO: this is for comparison, remove this before PR merge
31-
expect(normalizedAssetPrefix('https://example.com/path/to/asset')).not.toBe(
32-
'/https://example.com/path/to/asset'
33-
)
34-
29+
it('should return the URL when assetPrefix is a URL', () => {
3530
expect(normalizedAssetPrefix('https://example.com/path/to/asset')).toBe(
36-
'example.com/path/to/asset'
31+
'https://example.com/path/to/asset'
3732
)
3833
})
3934
})

0 commit comments

Comments
 (0)