File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1904,13 +1904,13 @@ createNextDescribe(
1904
1904
it ( 'should insert preload tags for beforeInteractive and afterInteractive scripts' , async ( ) => {
1905
1905
const html = await next . render ( '/script' )
1906
1906
expect ( html ) . toContain (
1907
- '<link rel="preload" as="script" href="https://github.com/test1.js"/>'
1907
+ '<link rel="preload" href="https://github.com/test1.js" as="script "/>'
1908
1908
)
1909
1909
expect ( html ) . toContain (
1910
- '<link rel="preload" as="script" href="https://github.com/test2.js"/>'
1910
+ '<link rel="preload" href="https://github.com/test2.js" as="script "/>'
1911
1911
)
1912
1912
expect ( html ) . toContain (
1913
- '<link rel="preload" as="script" href="https://github.com/test3.js"/>'
1913
+ '<link rel="preload" href="https://github.com/test3.js" as="script "/>'
1914
1914
)
1915
1915
1916
1916
// test4.js has lazyOnload which doesn't need to be preloaded
You can’t perform that action at this time.
0 commit comments