diff --git a/test/integration/production/test/index.test.js b/test/integration/production/test/index.test.js index 9d820808f3ca9..f648948e9054c 100644 --- a/test/integration/production/test/index.test.js +++ b/test/integration/production/test/index.test.js @@ -78,7 +78,7 @@ describe('Production Usage', () => { }) it('should contain generated page count in output', async () => { - const pageCount = process.env.NEXT_PRIVATE_TEST_WEBPACK4_MODE ? 37 : 38 + const pageCount = process.env.NEXT_PRIVATE_TEST_WEBPACK4_MODE ? 38 : 39 expect(output).toContain(`Generating static pages (0/${pageCount})`) expect(output).toContain( `Generating static pages (${pageCount}/${pageCount})` @@ -469,13 +469,12 @@ describe('Production Usage', () => { it('should set title by routeChangeComplete event', async () => { const browser = await webdriver(appPort, '/') await browser.eval(function setup() { - window.next.router.events.on( - 'routeChangeComplete', - function handler(url) { - window.routeChangeTitle = document.title - window.routeChangeUrl = url - } - ) + window.next.router.events.on('routeChangeComplete', function handler( + url + ) { + window.routeChangeTitle = document.title + window.routeChangeUrl = url + }) window.next.router.push('/with-title') }) await browser.waitForElementByCss('#with-title')