style(web): use single quotes in hero expectations

This commit is contained in:
Jiaying Ding
2026-08-07 11:54:45 +08:00
committed by GitHub
parent 9ac6acd7b6
commit 716361844c
4 changed files with 4 additions and 4 deletions

View File

@@ -75,7 +75,7 @@ it('hot-reloads a real client-plugin source edit without refreshing the page', a
if (!existsSync(binPath)) throw new Error('HMR browser test needs the built dsh bin; run pnpm run build first')
const originalSource = await readFile(sourcePath)
const originalBundle = await readFile(bundlePath)
const oldText = "Into the unknown"
const oldText = 'Into the unknown'
const sourceNeedle = "'hero.headline': 'Into the unknown'"
const newText = `HMR UPDATED ${'x'.repeat(80)}`
const updatedSource = originalSource.toString().replace(sourceNeedle, `'hero.headline': '${newText}'`)