Skip to content

Commit 60de078

Browse files
committed
test: update unit tests to not expect patch
1 parent dff05b2 commit 60de078

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

test/index.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1203,13 +1203,11 @@ describe('utility functions', () => {
12031203
const serverFile = path.resolve(process.cwd(), 'node_modules', 'next', 'dist', 'server', 'base-server.js')
12041204
const patchedData = await readFileSync(serverFile, 'utf8')
12051205
expect(patchedData.includes('_REVALIDATE_SSG')).toBeTruthy()
1206-
expect(patchedData.includes('private: isPreviewMode || false')).toBeTruthy()
12071206

12081207
await unpatchNextFiles(process.cwd())
12091208

12101209
const unPatchedData = await readFileSync(serverFile, 'utf8')
12111210
expect(unPatchedData.includes('_REVALIDATE_SSG')).toBeFalsy()
1212-
expect(unPatchedData.includes('private: isPreviewMode || false')).toBeFalsy()
12131211
})
12141212
})
12151213

0 commit comments

Comments
 (0)