Skip to content

Commit ecf600b

Browse files
committed
Update Float test assertion
The order of these attributes changed.
1 parent 7e8e320 commit ecf600b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/e2e/app-dir/app/index.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1904,13 +1904,13 @@ createNextDescribe(
19041904
it('should insert preload tags for beforeInteractive and afterInteractive scripts', async () => {
19051905
const html = await next.render('/script')
19061906
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"/>'
19081908
)
19091909
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"/>'
19111911
)
19121912
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"/>'
19141914
)
19151915

19161916
// test4.js has lazyOnload which doesn't need to be preloaded

0 commit comments

Comments
 (0)