Skip to content

Commit f4749f8

Browse files
committed
test: oops
1 parent 8ee8a48 commit f4749f8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/nuxt-cli/test/e2e/runtimes.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,15 +91,15 @@ describe.sequential.each(['bun', 'node', 'deno'] as const)('dev server (%s)', (r
9191
'User-Agent': 'vitest',
9292
}
9393

94-
const { status, headers: receivedHeaders } = await await fetch(`${server.url}/api/echo`, { headers })
95-
.then(r => r.json())
94+
const res = await fetch(`${server.url}/api/echo`, { headers })
95+
const { headers: receivedHeaders } = await res.json()
9696

9797
expect(receivedHeaders).toMatchObject({
9898
'user-agent': 'vitest',
9999
'x-custom-header': 'test-value',
100100
})
101101

102-
expect(status).toBe(200)
102+
expect(res.status).toBe(200)
103103
})
104104

105105
assertNonWindowsBun('should handle concurrent requests', async () => {

0 commit comments

Comments
 (0)