-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat add hydrating header meta testing
- Loading branch information
Showing
7 changed files
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<div>Just a dummy page.</div> |
4 changes: 4 additions & 0 deletions
4
test/hydration/samples/head-meta-hydrate-duplicate/_after_head.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<title>Some Title</title> | ||
<link rel="canonical" href="/"> | ||
<meta name="description" content="some description"> | ||
<meta name="keywords" content="some keywords"> |
1 change: 1 addition & 0 deletions
1
test/hydration/samples/head-meta-hydrate-duplicate/_before.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<div>Just a dummy page.</div> |
4 changes: 4 additions & 0 deletions
4
test/hydration/samples/head-meta-hydrate-duplicate/_before_head.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<title>Some Title</title> | ||
<link rel="canonical" href="/"> | ||
<meta name="description" content="some description"> | ||
<meta name="keywords" content="some keywords"> |
6 changes: 6 additions & 0 deletions
6
test/hydration/samples/head-meta-hydrate-duplicate/_config.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
export default { | ||
test({ assert, component, target, window }) { | ||
console.log(window.document.querySelectorAll('meta')); | ||
assert.equal(window.document.querySelectorAll('meta').length, 2); | ||
} | ||
}; |
8 changes: 8 additions & 0 deletions
8
test/hydration/samples/head-meta-hydrate-duplicate/main.svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<svelte:head> | ||
<title>Some Title</title> | ||
<link rel="canonical" href="/"> | ||
<meta name="description" content="some description"> | ||
<meta name="keywords" content="some keywords"> | ||
</svelte:head> | ||
|
||
<div>Just a dummy page.</div> |