1
0
Fork 0
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:
Arunoda Susiripala 2017-05-15 13:47:35 +05:30 committed by GitHub
parent b8f336c747
commit 650bb7c51b

View file

@ -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')