From 6f65a053a85b84f602beae95409199ae042b05ea Mon Sep 17 00:00:00 2001 From: Arunoda Susiripala Date: Wed, 5 Apr 2017 08:21:20 +0530 Subject: [PATCH] Fix ondemand test cases. --- test/integration/ondemand/test/index.test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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