Skip to content

Commit

Permalink
update modern tests (windows chunks are different)
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Dec 9, 2020
1 parent ba4dbdd commit 9a12a73
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion test/dev/modern.client.test.js
Expand Up @@ -31,7 +31,7 @@ describe('modern client mode (SSR)', () => {
expect(response).toContain('<link rel="modulepreload" crossorigin="use-credentials" href="/_nuxt/commons/app.modern.js" as="script">')
})

test('should contain module http2 pushed resources', async () => {
test.posix('should contain module http2 pushed resources', async () => {
const { headers: { link } } = await rp(url('/'))
expect(link).toEqual([
'</_nuxt/runtime.modern.js>; rel=modulepreload; crossorigin=use-credentials; as=script',
Expand Down
4 changes: 2 additions & 2 deletions test/dev/modern.server.test.js
Expand Up @@ -43,7 +43,7 @@ describe('modern server mode', () => {
expect(response).not.toContain('=>')
})

test('should contain legacy http2 pushed resources', async () => {
test.posix('should contain legacy http2 pushed resources', async () => {
const { headers: { link } } = await rp(url('/'))
expect(link).toEqual([
'</_nuxt/runtime.js>; rel=preload; crossorigin=use-credentials; as=script',
Expand All @@ -53,7 +53,7 @@ describe('modern server mode', () => {
].join(', '))
})

test('should contain module http2 pushed resources', async () => {
test.posix('should contain module http2 pushed resources', async () => {
const { headers: { link } } = await rp(url('/'), {
headers: { 'user-agent': modernUA }
})
Expand Down
4 changes: 2 additions & 2 deletions test/dev/modern.spa.test.js
Expand Up @@ -39,7 +39,7 @@ describe('modern client mode (SPA)', () => {
expect(response).toContain('<link rel="preload" crossorigin="use-credentials" href="/_nuxt/commons/app.js" as="script">')
})

test('should contain legacy http2 pushed resources', async () => {
test.posix('should contain legacy http2 pushed resources', async () => {
const { headers: { link } } = await rp(url('/'))
expect(link).toEqual([
'</_nuxt/runtime.js>; rel=preload; crossorigin=use-credentials; as=script',
Expand All @@ -59,7 +59,7 @@ describe('modern client mode (SPA)', () => {
expect(response).toContain('src="/_nuxt/safari-nomodule-fix.js" crossorigin="use-credentials"')
})

test('should contain modern http2 pushed resources', async () => {
test.posix('should contain modern http2 pushed resources', async () => {
const { headers: { link } } = await rp(url('/'), { headers: { 'user-agent': modernUA } })
expect(link).toEqual([
'</_nuxt/runtime.modern.js>; rel=modulepreload; crossorigin=use-credentials; as=script',
Expand Down

0 comments on commit 9a12a73

Please sign in to comment.