Skip to content

Commit

Permalink
chore: Update test snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
3y3 committed Oct 29, 2024
1 parent 938a817 commit 325e734
Show file tree
Hide file tree
Showing 3 changed files with 123 additions and 33 deletions.
70 changes: 56 additions & 14 deletions tests/e2e/__snapshots__/load-custom-resources.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ exports[`Allow load custom resources md2html single page with custom resources 1
"page.html",
"project/config.html",
"single-page.html",
"single-page.json"
"single-page.json",
"toc.js"
]"
`;

Expand Down Expand Up @@ -98,7 +99,11 @@ exports[`Allow load custom resources md2html single page with custom resources 2
</div>
<script type="application/javascript">
window.STATIC_CONTENT = false
window.__DATA__ = {"data":{"leading":true,"toc":{"title":"Documentation","href":"index.html","items":[{"name":"Documentation","href":"page.html","id":"Documentation-RANDOM"},{"name":"Config","href":"project/config.html","id":"Config-RANDOM"}],"base":".","deepBase":0},"data":{"title":"Documentation","description":"","meta":{"title":"Documentation","noIndex":true,"metadata":[],"style":["_assets/style/test.css"],"script":["_assets/script/test1.js"]},"links":[{"title":"Getting started with Documentation","description":"This guide will show you the basics of working with Documentation","href":"page.html"}]},"meta":{"title":"Documentation","noIndex":true,"metadata":[],"style":["_assets/style/test.css"],"script":["_assets/script/test1.js"]}},"router":{"pathname":"index.html","depth":1},"lang":"ru","langs":["ru"]};
window.__DATA__ = {"data":{"data":{"title":"Documentation","description":"","meta":{"title":"Documentation","noIndex":true,"metadata":[],"style":["_assets/style/test.css"],"script":["_assets/script/test1.js"]},"links":[{"title":"Getting started with Documentation","description":"This guide will show you the basics of working with Documentation","href":"page.html"}]},"meta":{"title":"Documentation","noIndex":true,"metadata":[],"style":["_assets/style/test.css"],"script":["_assets/script/test1.js"]},"title":"Documentation | Documentation","leading":true},"router":{"pathname":"index.html","depth":1},"lang":"ru","langs":["ru"]};
</script>
<script src="./toc.js"
type="application/javascript"
>
</script>
<script type="application/javascript"
src="_bundle/search-js-0"
Expand Down Expand Up @@ -159,9 +164,13 @@ exports[`Allow load custom resources md2html single page with custom resources 3
</div>
<script type="application/javascript">
window.STATIC_CONTENT = false
window.__DATA__ = {"data":{"leading":false,"toc":{"title":"Documentation","href":"index.html","items":[{"name":"Documentation","href":"page.html","id":"Documentation-RANDOM"},{"name":"Config","href":"project/config.html","id":"Config-RANDOM"}],"base":".","deepBase":0},"meta":{"metadata":[{"name":"yfm","content":"builder"}],"style":["_assets/style/test.css"],"script":["_assets/script/test1.js"]},"assets":[],"headings":[],"title":"","includes":[],"html":"
window.__DATA__ = {"data":{"meta":{"metadata":[{"name":"yfm","content":"builder"}],"style":["_assets/style/test.css"],"script":["_assets/script/test1.js"]},"assets":[],"headings":[],"title":"Documentation","includes":[],"html":"
<p>Lorem
</p>/n"},"router":{"pathname":"page.html","depth":1},"lang":"ru","langs":["ru"]};
</p>/n","leading":false},"router":{"pathname":"page.html","depth":1},"lang":"ru","langs":["ru"]};
</script>
<script src="./toc.js"
type="application/javascript"
>
</script>
<script type="application/javascript"
src="_bundle/search-js-0"
Expand Down Expand Up @@ -219,9 +228,13 @@ exports[`Allow load custom resources md2html single page with custom resources 4
</div>
<script type="application/javascript">
window.STATIC_CONTENT = false
window.__DATA__ = {"data":{"leading":false,"toc":{"title":"Documentation","href":"index.html","items":[{"name":"Documentation","href":"page.html","id":"Documentation-RANDOM"},{"name":"Config","href":"project/config.html","id":"Config-RANDOM"}],"base":".","deepBase":0},"meta":{"metadata":[],"style":["_assets/style/test.css"],"script":["_assets/script/test1.js"]},"assets":[],"headings":[],"title":"","includes":[],"html":"
window.__DATA__ = {"data":{"meta":{"metadata":[],"style":["_assets/style/test.css"],"script":["_assets/script/test1.js"]},"assets":[],"headings":[],"title":"Documentation","includes":[],"html":"
<p>Lorem
</p>/n"},"router":{"pathname":"project/config.html","depth":2},"lang":"ru","langs":["ru"]};
</p>/n","leading":false},"router":{"pathname":"project/config.html","depth":2},"lang":"ru","langs":["ru"]};
</script>
<script src="./toc.js"
type="application/javascript"
>
</script>
<script type="application/javascript"
src="_bundle/search-js-0"
Expand Down Expand Up @@ -251,7 +264,7 @@ exports[`Allow load custom resources md2html single page with custom resources 5
content="width=device-width, initial-scale=1.0"
>
<title>
Documentation
undefined
</title>
<style type="text/css">
body {
Expand Down Expand Up @@ -280,12 +293,24 @@ exports[`Allow load custom resources md2html single page with custom resources 5
<script type="application/javascript">
window.STATIC_CONTENT = false
window.__DATA__ = {"data":{"leading":false,"html":"
<h2 data-original-article=\\"/page.html\\">Documentation
<a class=\\"yfm-anchor\\" aria-hidden=\\"true\\" href=\\"#_page\\" id=\\"_page\\">
</a>
</h2>
<p>Lorem
</p>/n
<hr class=\\"yfm-page__delimeter\\">
<h2 data-original-article=\\"/project/config.html\\">Documentation
<a class=\\"yfm-anchor\\" aria-hidden=\\"true\\" href=\\"#_project_config\\" id=\\"_project_config\\">
</a>
</h2>
<p>Lorem
</p>/n","headings":[],"meta":{"style":["_assets/style/test.css"],"script":["_assets/script/test1.js"]},"toc":{"title":"Documentation","href":"index.yaml","items":[{"name":"Documentation","href":"#_page","id":"Documentation-RANDOM"},{"name":"Config","href":"#_project_config","id":"Config-RANDOM"}],"base":".","deepBase":0,"singlePage":true}},"router":{"pathname":"single-page.html"},"lang":"ru","langs":["ru"]};
</script>
<script src="./toc.js"
type="application/javascript"
>
</script>
<script type="application/javascript"
src="_bundle/search-js-0"
>
Expand All @@ -302,7 +327,9 @@ exports[`Allow load custom resources md2html single page with custom resources 5
</html>
`;
exports[`Allow load custom resources md2html single page with custom resources 6`] = `"{"data":{"leading":false,"html":"<p>Lorem</p>/n<hr class=\\"yfm-page__delimeter\\"><p>Lorem</p>/n","headings":[],"meta":{"style":["_assets/style/test.css"],"script":["_assets/script/test1.js"]},"toc":{"title":"Documentation","href":"index.yaml","items":[{"name":"Documentation","href":"#_page","id":"Documentation-RANDOM"},{"name":"Config","href":"#_project_config","id":"Config-RANDOM"}],"base":".","deepBase":0,"singlePage":true}},"router":{"pathname":"single-page.html"},"lang":"ru","langs":["ru"]}"`;
exports[`Allow load custom resources md2html single page with custom resources 6`] = `"{"data":{"leading":false,"html":"<h2 data-original-article=\\"/page.html\\">Documentation<a class=\\"yfm-anchor\\" aria-hidden=\\"true\\" href=\\"#_page\\" id=\\"_page\\"></a></h2><p>Lorem</p>/n<hr class=\\"yfm-page__delimeter\\"><h2 data-original-article=\\"/project/config.html\\">Documentation<a class=\\"yfm-anchor\\" aria-hidden=\\"true\\" href=\\"#_project_config\\" id=\\"_project_config\\"></a></h2><p>Lorem</p>/n","headings":[],"meta":{"style":["_assets/style/test.css"],"script":["_assets/script/test1.js"]},"toc":{"title":"Documentation","href":"index.yaml","items":[{"name":"Documentation","href":"#_page","id":"Documentation-RANDOM"},{"name":"Config","href":"#_project_config","id":"Config-RANDOM"}],"base":".","deepBase":0,"singlePage":true}},"router":{"pathname":"single-page.html"},"lang":"ru","langs":["ru"]}"`;
exports[`Allow load custom resources md2html single page with custom resources 7`] = `"window.__DATA__.data.toc = {"title":"Documentation","href":"index.html","items":[{"name":"Documentation","href":"page.html","id":"Documentation-RANDOM"},{"name":"Config","href":"project/config.html","id":"Config-RANDOM"}],"base":".","deepBase":0};"`;
exports[`Allow load custom resources md2html with custom resources 1`] = `
"[
Expand Down Expand Up @@ -350,7 +377,8 @@ exports[`Allow load custom resources md2html with custom resources 1`] = `
"_bundle/search-css-1",
"index.html",
"page.html",
"project/config.html"
"project/config.html",
"toc.js"
]"
`;
Expand Down Expand Up @@ -400,7 +428,11 @@ exports[`Allow load custom resources md2html with custom resources 2`] = `
</div>
<script type="application/javascript">
window.STATIC_CONTENT = false
window.__DATA__ = {"data":{"leading":true,"toc":{"title":"Documentation","href":"index.html","items":[{"name":"Documentation","href":"page.html","id":"Documentation-RANDOM"},{"name":"Config","href":"project/config.html","id":"Config-RANDOM"}],"base":".","deepBase":0},"data":{"title":"Documentation","description":"","meta":{"title":"Documentation","noIndex":true,"metadata":[],"style":["_assets/style/test.css"],"script":["_assets/script/test1.js"]},"links":[{"title":"Getting started with Documentation","description":"This guide will show you the basics of working with Documentation","href":"page.html"}]},"meta":{"title":"Documentation","noIndex":true,"metadata":[],"style":["_assets/style/test.css"],"script":["_assets/script/test1.js"]}},"router":{"pathname":"index.html","depth":1},"lang":"ru","langs":["ru"]};
window.__DATA__ = {"data":{"data":{"title":"Documentation","description":"","meta":{"title":"Documentation","noIndex":true,"metadata":[],"style":["_assets/style/test.css"],"script":["_assets/script/test1.js"]},"links":[{"title":"Getting started with Documentation","description":"This guide will show you the basics of working with Documentation","href":"page.html"}]},"meta":{"title":"Documentation","noIndex":true,"metadata":[],"style":["_assets/style/test.css"],"script":["_assets/script/test1.js"]},"title":"Documentation | Documentation","leading":true},"router":{"pathname":"index.html","depth":1},"lang":"ru","langs":["ru"]};
</script>
<script src="./toc.js"
type="application/javascript"
>
</script>
<script type="application/javascript"
src="_bundle/search-js-0"
Expand Down Expand Up @@ -461,9 +493,13 @@ exports[`Allow load custom resources md2html with custom resources 3`] = `
</div>
<script type="application/javascript">
window.STATIC_CONTENT = false
window.__DATA__ = {"data":{"leading":false,"toc":{"title":"Documentation","href":"index.html","items":[{"name":"Documentation","href":"page.html","id":"Documentation-RANDOM"},{"name":"Config","href":"project/config.html","id":"Config-RANDOM"}],"base":".","deepBase":0},"meta":{"metadata":[{"name":"yfm","content":"builder"}],"style":["_assets/style/test.css"],"script":["_assets/script/test1.js"]},"assets":[],"headings":[],"title":"","includes":[],"html":"
window.__DATA__ = {"data":{"meta":{"metadata":[{"name":"yfm","content":"builder"}],"style":["_assets/style/test.css"],"script":["_assets/script/test1.js"]},"assets":[],"headings":[],"title":"Documentation","includes":[],"html":"
<p>Lorem
</p>/n"},"router":{"pathname":"page.html","depth":1},"lang":"ru","langs":["ru"]};
</p>/n","leading":false},"router":{"pathname":"page.html","depth":1},"lang":"ru","langs":["ru"]};
</script>
<script src="./toc.js"
type="application/javascript"
>
</script>
<script type="application/javascript"
src="_bundle/search-js-0"
Expand Down Expand Up @@ -521,9 +557,13 @@ exports[`Allow load custom resources md2html with custom resources 4`] = `
</div>
<script type="application/javascript">
window.STATIC_CONTENT = false
window.__DATA__ = {"data":{"leading":false,"toc":{"title":"Documentation","href":"index.html","items":[{"name":"Documentation","href":"page.html","id":"Documentation-RANDOM"},{"name":"Config","href":"project/config.html","id":"Config-RANDOM"}],"base":".","deepBase":0},"meta":{"metadata":[],"style":["_assets/style/test.css"],"script":["_assets/script/test1.js"]},"assets":[],"headings":[],"title":"","includes":[],"html":"
window.__DATA__ = {"data":{"meta":{"metadata":[],"style":["_assets/style/test.css"],"script":["_assets/script/test1.js"]},"assets":[],"headings":[],"title":"Documentation","includes":[],"html":"
<p>Lorem
</p>/n"},"router":{"pathname":"project/config.html","depth":2},"lang":"ru","langs":["ru"]};
</p>/n","leading":false},"router":{"pathname":"project/config.html","depth":2},"lang":"ru","langs":["ru"]};
</script>
<script src="./toc.js"
type="application/javascript"
>
</script>
<script type="application/javascript"
src="_bundle/search-js-0"
Expand All @@ -541,6 +581,8 @@ exports[`Allow load custom resources md2html with custom resources 4`] = `
</html>
`;
exports[`Allow load custom resources md2html with custom resources 5`] = `"window.__DATA__.data.toc = {"title":"Documentation","href":"index.html","items":[{"name":"Documentation","href":"page.html","id":"Documentation-RANDOM"},{"name":"Config","href":"project/config.html","id":"Config-RANDOM"}],"base":".","deepBase":0};"`;
exports[`Allow load custom resources md2md with custom resources 1`] = `
"[
".yfm",
Expand Down
27 changes: 21 additions & 6 deletions tests/e2e/__snapshots__/metadata.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ exports[`Allow load custom resources md2html with metadata 1`] = `
"_bundle/search-css-1",
"index.html",
"page.html",
"project/config.html"
"project/config.html",
"toc.js"
]"
`;

Expand Down Expand Up @@ -93,7 +94,11 @@ exports[`Allow load custom resources md2html with metadata 2`] = `
</div>
<script type="application/javascript">
window.STATIC_CONTENT = false
window.__DATA__ = {"data":{"leading":true,"toc":{"title":"Documentation","href":"index.html","items":[{"name":"Documentation","href":"page.html","id":"Documentation-RANDOM"},{"name":"Config","href":"project/config.html","id":"Config-RANDOM"}],"base":".","deepBase":0},"data":{"title":"Documentation","description":"","meta":{"title":"Documentation","noIndex":true,"metadata":[{"name":"test-yfm","content":"inline test"},{"name":"yfm-config","content":"config test"}],"style":[],"script":[]},"links":[{"title":"Getting started with Documentation","description":"This guide will show you the basics of working with Documentation","href":"page.html"}]},"meta":{"title":"Documentation","noIndex":true,"metadata":[{"name":"test-yfm","content":"inline test"},{"name":"yfm-config","content":"config test"}],"style":[],"script":[]}},"router":{"pathname":"index.html","depth":1},"lang":"ru","langs":["ru"]};
window.__DATA__ = {"data":{"data":{"title":"Documentation","description":"","meta":{"title":"Documentation","noIndex":true,"metadata":[{"name":"test-yfm","content":"inline test"},{"name":"yfm-config","content":"config test"}],"style":[],"script":[]},"links":[{"title":"Getting started with Documentation","description":"This guide will show you the basics of working with Documentation","href":"page.html"}]},"meta":{"title":"Documentation","noIndex":true,"metadata":[{"name":"test-yfm","content":"inline test"},{"name":"yfm-config","content":"config test"}],"style":[],"script":[]},"title":"Documentation | Documentation","leading":true},"router":{"pathname":"index.html","depth":1},"lang":"ru","langs":["ru"]};
</script>
<script src="./toc.js"
type="application/javascript"
>
</script>
<script type="application/javascript"
src="_bundle/search-js-0"
Expand Down Expand Up @@ -153,9 +158,13 @@ exports[`Allow load custom resources md2html with metadata 3`] = `
</div>
<script type="application/javascript">
window.STATIC_CONTENT = false
window.__DATA__ = {"data":{"leading":false,"toc":{"title":"Documentation","href":"index.html","items":[{"name":"Documentation","href":"page.html","id":"Documentation-RANDOM"},{"name":"Config","href":"project/config.html","id":"Config-RANDOM"}],"base":".","deepBase":0},"meta":{"metadata":[{"name":"yfm","value":"builder in page"},{"name":"test-yfm","content":"inline test"},{"name":"yfm-config","content":"config test"}],"style":[],"script":[]},"assets":[],"headings":[],"title":"","includes":[],"html":"
window.__DATA__ = {"data":{"meta":{"metadata":[{"name":"yfm","value":"builder in page"},{"name":"test-yfm","content":"inline test"},{"name":"yfm-config","content":"config test"}],"style":[],"script":[]},"assets":[],"headings":[],"title":"Documentation","includes":[],"html":"
<p>Lorem
</p>/n"},"router":{"pathname":"page.html","depth":1},"lang":"ru","langs":["ru"]};
</p>/n","leading":false},"router":{"pathname":"page.html","depth":1},"lang":"ru","langs":["ru"]};
</script>
<script src="./toc.js"
type="application/javascript"
>
</script>
<script type="application/javascript"
src="_bundle/search-js-0"
Expand Down Expand Up @@ -215,9 +224,13 @@ exports[`Allow load custom resources md2html with metadata 4`] = `
</div>
<script type="application/javascript">
window.STATIC_CONTENT = false
window.__DATA__ = {"data":{"leading":false,"toc":{"title":"Documentation","href":"index.html","items":[{"name":"Documentation","href":"page.html","id":"Documentation-RANDOM"},{"name":"Config","href":"project/config.html","id":"Config-RANDOM"}],"base":".","deepBase":0},"meta":{"metadata":[{"name":"yfm","value":"builder in config"},{"name":"test-yfm","content":"inline test"},{"name":"yfm-config","content":"config test"}],"style":[],"script":[]},"assets":[],"headings":[],"title":"","includes":[],"html":"
window.__DATA__ = {"data":{"meta":{"metadata":[{"name":"yfm","value":"builder in config"},{"name":"test-yfm","content":"inline test"},{"name":"yfm-config","content":"config test"}],"style":[],"script":[]},"assets":[],"headings":[],"title":"Documentation","includes":[],"html":"
<p>Lorem
</p>/n"},"router":{"pathname":"project/config.html","depth":2},"lang":"ru","langs":["ru"]};
</p>/n","leading":false},"router":{"pathname":"project/config.html","depth":2},"lang":"ru","langs":["ru"]};
</script>
<script src="./toc.js"
type="application/javascript"
>
</script>
<script type="application/javascript"
src="_bundle/search-js-0"
Expand All @@ -235,6 +248,8 @@ exports[`Allow load custom resources md2html with metadata 4`] = `
</html>
`;
exports[`Allow load custom resources md2html with metadata 5`] = `"window.__DATA__.data.toc = {"title":"Documentation","href":"index.html","items":[{"name":"Documentation","href":"page.html","id":"Documentation-RANDOM"},{"name":"Config","href":"project/config.html","id":"Config-RANDOM"}],"base":".","deepBase":0};"`;
exports[`Allow load custom resources md2md with metadata 1`] = `
"[
"index.yaml",
Expand Down
Loading

0 comments on commit 325e734

Please sign in to comment.