Skip to content

Commit

Permalink
Update Float test assertion
Browse files Browse the repository at this point in the history
The order of these attributes changed.
  • Loading branch information
acdlite committed Sep 14, 2023
1 parent 7e8e320 commit ecf600b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/e2e/app-dir/app/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1904,13 +1904,13 @@ createNextDescribe(
it('should insert preload tags for beforeInteractive and afterInteractive scripts', async () => {
const html = await next.render('/script')
expect(html).toContain(
'<link rel="preload" as="script" href="/test1.js"/>'
'<link rel="preload" href="/test1.js" as="script"/>'
)
expect(html).toContain(
'<link rel="preload" as="script" href="/test2.js"/>'
'<link rel="preload" href="/test2.js" as="script"/>'
)
expect(html).toContain(
'<link rel="preload" as="script" href="/test3.js"/>'
'<link rel="preload" href="/test3.js" as="script"/>'
)

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

0 comments on commit ecf600b

Please sign in to comment.