From a91a7d4570637393d389335989a45c16898d6f8c Mon Sep 17 00:00:00 2001 From: pushkine Date: Mon, 25 May 2020 11:48:32 +0200 Subject: [PATCH] update expected --- test/hydration/index.ts | 4 ++-- .../samples/head-meta-hydrate-duplicate/_before_head.html | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/test/hydration/index.ts b/test/hydration/index.ts index 75ebb77aca..d5d538d1a0 100644 --- a/test/hydration/index.ts +++ b/test/hydration/index.ts @@ -92,8 +92,8 @@ describe('hydration', () => { if (before_head) { try { 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')); + head.innerHTML, + fs.readFileSync(`${cwd}/_after_head.html`, 'utf-8')) } catch (error) { if (shouldUpdateExpected()) { fs.writeFileSync(`${cwd}/_after_head.html`, head.innerHTML); diff --git a/test/hydration/samples/head-meta-hydrate-duplicate/_before_head.html b/test/hydration/samples/head-meta-hydrate-duplicate/_before_head.html index 9bde3fa69e..107753cdd0 100644 --- a/test/hydration/samples/head-meta-hydrate-duplicate/_before_head.html +++ b/test/hydration/samples/head-meta-hydrate-duplicate/_before_head.html @@ -1,4 +1,4 @@ Some Title - - - \ No newline at end of file + + + \ No newline at end of file