ignore css hash

pull/4886/head
pushkine 5 years ago
parent 6e94f5bd2e
commit 67a27a8d2a

@ -91,7 +91,9 @@ describe('hydration', () => {
if (before_head) { if (before_head) {
try { try {
assert.htmlEqual(head.innerHTML, fs.readFileSync(`${cwd}/_after_head.html`, 'utf-8')); assert.htmlEqual(
head.innerHTML.replace(/svelte(-ref)?-[a-z0-9]+/g, (m, $1) => $1 ? m : 'svelte-xyz'),
fs.readFileSync(`${cwd}/_after_head.html`, 'utf-8').replace(/svelte(-ref)?-[a-z0-9]+/g, (m, $1) => $1 ? m : 'svelte-xyz'));
} catch (error) { } catch (error) {
if (shouldUpdateExpected()) { if (shouldUpdateExpected()) {
fs.writeFileSync(`${cwd}/_after_head.html`, head.innerHTML); fs.writeFileSync(`${cwd}/_after_head.html`, head.innerHTML);

Loading…
Cancel
Save