Skip to content

Commit 3dae7cf

Browse files
committedSep 16, 2018
Fix test intermittently failing
1 parent 249d4be commit 3dae7cf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎test/integration/production/test/index.test.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,8 @@ describe('Production Usage', () => {
7373
resources.push(`${url}static/${buildId}/pages/index.js`)
7474

7575
// test dynamic chunk
76-
resources.push(url + reactLoadableManifest['../../components/hello1'][0].publicPath)
76+
const file = Object.keys(reactLoadableManifest).find((i) => i.indexOf('components/hello1') !== -1)
77+
resources.push(url + reactLoadableManifest[file][0].publicPath)
7778

7879
// test main.js runtime etc
7980
for (const item of buildManifest.pages['/']) {

0 commit comments

Comments
 (0)
Please sign in to comment.