diff --git a/test/integration/ondemand/test/index.test.js b/test/integration/ondemand/test/index.test.js index 0726a8d4..7971f227 100644 --- a/test/integration/ondemand/test/index.test.js +++ b/test/integration/ondemand/test/index.test.js @@ -31,13 +31,13 @@ describe('On Demand Entries', () => { }) it('should compile pages for JSON page requests', async () => { - const pageContent = await renderViaHTTP(context.appPort, '/_next/-/pages/about') + const pageContent = await renderViaHTTP(context.appPort, '/_next/-/page/about') expect(pageContent.includes('About Page')).toBeTruthy() }) it('should dispose inactive pages', async () => { await renderViaHTTP(context.appPort, '/_next/-/pages/about') - const aboutPagePath = resolve(__dirname, '../.next/bundles/pages/about.json') + const aboutPagePath = resolve(__dirname, '../.next/client-bundles/pages/about.js') expect(existsSync(aboutPagePath)).toBeTruthy() // Wait maximum of jasmine.DEFAULT_TIMEOUT_INTERVAL checking