1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00

Fix test intermittently failing

This commit is contained in:
Tim Neutkens 2018-09-16 18:05:36 +02:00
parent 249d4be6d6
commit 3dae7cf9a6

View file

@ -73,7 +73,8 @@ describe('Production Usage', () => {
resources.push(`${url}static/${buildId}/pages/index.js`)
// test dynamic chunk
resources.push(url + reactLoadableManifest['../../components/hello1'][0].publicPath)
const file = Object.keys(reactLoadableManifest).find((i) => i.indexOf('components/hello1') !== -1)
resources.push(url + reactLoadableManifest[file][0].publicPath)
// test main.js runtime etc
for (const item of buildManifest.pages['/']) {