mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
Fix hmr failing issue. (#1968)
This commit is contained in:
parent
b8f336c747
commit
650bb7c51b
|
@ -23,7 +23,7 @@ export default (context, render) => {
|
|||
const errorMessage = await browser
|
||||
.waitForElementByCss('pre')
|
||||
.elementByCss('pre').text()
|
||||
expect(errorMessage.includes('SyntaxError: Unterminated JSX contents')).toBeTruthy()
|
||||
expect(errorMessage.includes('Unterminated JSX contents')).toBeTruthy()
|
||||
|
||||
// add the original content
|
||||
writeFileSync(aboutPagePath, originalContent, 'utf8')
|
||||
|
|
Loading…
Reference in a new issue