mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-30 09:27:13 +00:00
parent
859d632771
commit
5bdd0dd8a5
@ -129,7 +129,7 @@ export default class Nuxt {
|
||||
return reject(err)
|
||||
}
|
||||
|
||||
({ host, port } = server.address())
|
||||
({ address: host, port } = server.address())
|
||||
if (['127.0.0.1', '0.0.0.0'].includes(host)) {
|
||||
host = 'localhost'
|
||||
}
|
||||
|
@ -40,7 +40,8 @@ describe.skip.appveyor('cli', () => {
|
||||
}
|
||||
|
||||
expect(error).toBe(undefined)
|
||||
expect(stdout.includes('Listening on')).toBe(true)
|
||||
expect(stdout.includes('Listening on ')).toBe(true)
|
||||
expect(stdout.includes(`http://localhost:${port}`)).toBe(true)
|
||||
|
||||
const html = await rp(url('/'))
|
||||
expect(html).toMatch(('<div>CLI Test</div>'))
|
||||
|
Loading…
Reference in New Issue
Block a user