Skip to content

Commit 35bbda5

Browse files
committed
Update CSS manifest loader tests to verify fetch implementation details
1 parent 71e7e12 commit 35bbda5

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎packages/next/tests/css-manifest-loader.test.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,8 @@ describe('css manifest loader', () => {
9090

9191
expect(source).toContain('/_next/static/media/master-css-manifest.')
9292
expect(source).toContain('loadMasterCSSManifestFromFetch')
93-
expect(source).toContain('const masterCSSManifestResponse = await fetch(specifier);')
93+
expect(source).toContain('async function loadMasterCSSManifestFromFetch(url)')
94+
expect(source).toContain('const response = await fetch(specifier);')
9495
expect(source).toContain('export default await loadMasterCSSManifestFromFetch(masterCSSManifestURL);')
9596
expect(source).toContain(`with: { type: 'json' }`)
9697
expect(source).toContain('fetch(')

0 commit comments

Comments
 (0)