Skip to content

Commit

Permalink
fix: update test snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
makamekm authored and 3y3 committed Apr 23, 2024
1 parent c270da0 commit a22e516
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 494 deletions.
276 changes: 16 additions & 260 deletions tests/e2e/__snapshots__/load-custom-resources.spec.ts.snap
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`Allow load custom resources md2html single page with custom resources 1`] = `"["_assets/script/test1.js","_assets/style/test.css","_bundle/app.css","_bundle/app.js","_bundle/react.js","_bundle/vendor.css","_bundle/vendor.js","index.html","page.html","project/config.html","single-page.html","single-page.json"]"`;
exports[`Allow load custom resources md2html single page with custom resources 1`] = `"["_assets/script/test1.js","_assets/style/test.css","_bundle/app.css","_bundle/app.js","_bundle/react.js","_bundle/vendor.css","_bundle/vendor.js","project/config.html","single-page.html","single-page.json"]"`;

exports[`Allow load custom resources md2html single page with custom resources 2`] = `
<!DOCTYPE html>
Expand All @@ -9,71 +9,8 @@ exports[`Allow load custom resources md2html single page with custom resources 2
>
<head>
<meta charset="utf-8">
<meta name="title"
content="Documentation"
>
<meta name="noIndex"
content="true"
>
<meta name="viewport"
content="width=device-width, initial-scale=1.0"
>
<title>
Documentation | Documentation
</title>
<style type="text/css">
body {
height: 100vh;
}
</style>
<link type="text/css"
rel="stylesheet"
href="_bundle/vendor.css"
>
<link type="text/css"
rel="stylesheet"
href="_bundle/app.css"
>
<link rel="stylesheet"
type="text/css"
href="_assets/style/test.css"
id="custom-style"
>
<script src="_assets/script/test1.js">
</script>
</head>
<body class="g-root g-root_theme_light">
<div id="root">
</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":"."},"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"},"lang":"ru"};
</script>
<script type="application/javascript"
src="_bundle/react.js"
>
</script>
<script type="application/javascript"
src="_bundle/app.js"
>
</script>
<script type="application/javascript"
src="_bundle/vendor.js"
>
</script>
</body>
</html>
`;
exports[`Allow load custom resources md2html single page with custom resources 3`] = `
<!DOCTYPE html>
<html lang="ru"
dir="ltr"
>
<head>
<meta charset="utf-8">
<meta name="yfm"
content="builder"
<base href="./"
target="_blank"
>
<meta name="viewport"
content="width=device-width, initial-scale=1.0"
Expand All @@ -86,65 +23,6 @@ exports[`Allow load custom resources md2html single page with custom resources 3
height: 100vh;
}
</style>
<link type="text/css"
rel="stylesheet"
href="_bundle/vendor.css"
>
<link type="text/css"
rel="stylesheet"
href="_bundle/app.css"
>
<link rel="stylesheet"
type="text/css"
href="_assets/style/test.css"
id="custom-style"
>
<script src="_assets/script/test1.js">
</script>
</head>
<body class="g-root g-root_theme_light">
<div id="root">
</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":"."},"meta":{"metadata":[{"name":"yfm","content":"builder"}],"style":["_assets/style/test.css"],"script":["_assets/script/test1.js"]},"assets":[],"headings":[],"title":"","includes":[],"html":"
<p>Lorem
</p>/n"},"router":{"pathname":"page.html"},"lang":"ru"};
</script>
<script type="application/javascript"
src="_bundle/react.js"
>
</script>
<script type="application/javascript"
src="_bundle/app.js"
>
</script>
<script type="application/javascript"
src="_bundle/vendor.js"
>
</script>
</body>
</html>
`;
exports[`Allow load custom resources md2html single page with custom resources 4`] = `
<!DOCTYPE html>
<html lang="ru"
dir="ltr"
>
<head>
<meta charset="utf-8">
<meta name="viewport"
content="width=device-width, initial-scale=1.0"
>
<title>
Documentation
</title>
<style type="text/css">
body {
height: 100vh;
}
</style>
<link type="text/css"
rel="stylesheet"
href="../_bundle/vendor.css"
Expand All @@ -166,9 +44,9 @@ 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":"."},"meta":{"metadata":[],"style":["../_assets/style/test.css"],"script":["../_assets/script/test1.js"]},"assets":[],"headings":[],"title":"","includes":[],"html":"
window.__DATA__ = {"data":{"leading":false,"toc":{"title":"Documentation","href":"index","items":[{"name":"Documentation","href":"page","id":"Documentation-RANDOM"},{"name":"Config","href":"project/config","id":"Config-RANDOM"}],"base":"."},"meta":{"metadata":[],"style":["../_assets/style/test.css"],"script":["../_assets/script/test1.js"]},"assets":[],"headings":[],"title":"","includes":[],"html":"
<p>Lorem
</p>/n"},"router":{"pathname":"../project/config.html"},"lang":"ru"};
</p>/n"},"router":{"pathname":"project/config.html"},"lang":"ru","langs":["ru"]};
</script>
<script type="application/javascript"
src="../_bundle/react.js"
Expand All @@ -186,13 +64,16 @@ exports[`Allow load custom resources md2html single page with custom resources 4
</html>
`;
exports[`Allow load custom resources md2html single page with custom resources 5`] = `
exports[`Allow load custom resources md2html single page with custom resources 3`] = `
<!DOCTYPE html>
<html lang="ru"
dir="ltr"
>
<head>
<meta charset="utf-8">
<base href="./"
target="_blank"
>
<meta name="viewport"
content="width=device-width, initial-scale=1.0"
>
Expand Down Expand Up @@ -227,10 +108,7 @@ exports[`Allow load custom resources md2html single page with custom resources 5
window.STATIC_CONTENT = false
window.__DATA__ = {"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":".","singlePage":true}},"router":{"pathname":"single-page.html"},"lang":"ru"};
</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":".","singlePage":true}},"router":{"pathname":"single-page.html"},"lang":"ru","langs":["ru"]};
</script>
<script type="application/javascript"
src="_bundle/react.js"
Expand All @@ -248,9 +126,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":".","singlePage":true}},"router":{"pathname":"single-page.html"},"lang":"ru"}"`;
exports[`Allow load custom resources md2html single page with custom resources 4`] = `"{"data":{"leading":false,"html":"<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":".","singlePage":true}},"router":{"pathname":"single-page.html"},"lang":"ru","langs":["ru"]}"`;
exports[`Allow load custom resources md2html with custom resources 1`] = `"["_assets/script/test1.js","_assets/style/test.css","_bundle/app.css","_bundle/app.js","_bundle/react.js","_bundle/vendor.css","_bundle/vendor.js","index.html","page.html","project/config.html"]"`;
exports[`Allow load custom resources md2html with custom resources 1`] = `"["_assets/script/test1.js","_assets/style/test.css","_bundle/app.css","_bundle/app.js","_bundle/react.js","_bundle/vendor.css","_bundle/vendor.js","project/config.html"]"`;
exports[`Allow load custom resources md2html with custom resources 2`] = `
<!DOCTYPE html>
Expand All @@ -259,131 +137,9 @@ exports[`Allow load custom resources md2html with custom resources 2`] = `
>
<head>
<meta charset="utf-8">
<meta name="title"
content="Documentation"
>
<meta name="noIndex"
content="true"
>
<meta name="viewport"
content="width=device-width, initial-scale=1.0"
>
<title>
Documentation | Documentation
</title>
<style type="text/css">
body {
height: 100vh;
}
</style>
<link type="text/css"
rel="stylesheet"
href="_bundle/vendor.css"
>
<link type="text/css"
rel="stylesheet"
href="_bundle/app.css"
>
<link rel="stylesheet"
type="text/css"
href="_assets/style/test.css"
id="custom-style"
>
<script src="_assets/script/test1.js">
</script>
</head>
<body class="g-root g-root_theme_light">
<div id="root">
</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":"."},"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"},"lang":"ru"};
</script>
<script type="application/javascript"
src="_bundle/react.js"
>
</script>
<script type="application/javascript"
src="_bundle/app.js"
>
</script>
<script type="application/javascript"
src="_bundle/vendor.js"
>
</script>
</body>
</html>
`;
exports[`Allow load custom resources md2html with custom resources 3`] = `
<!DOCTYPE html>
<html lang="ru"
dir="ltr"
>
<head>
<meta charset="utf-8">
<meta name="yfm"
content="builder"
>
<meta name="viewport"
content="width=device-width, initial-scale=1.0"
<base href="./"
target="_blank"
>
<title>
Documentation
</title>
<style type="text/css">
body {
height: 100vh;
}
</style>
<link type="text/css"
rel="stylesheet"
href="_bundle/vendor.css"
>
<link type="text/css"
rel="stylesheet"
href="_bundle/app.css"
>
<link rel="stylesheet"
type="text/css"
href="_assets/style/test.css"
id="custom-style"
>
<script src="_assets/script/test1.js">
</script>
</head>
<body class="g-root g-root_theme_light">
<div id="root">
</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":"."},"meta":{"metadata":[{"name":"yfm","content":"builder"}],"style":["_assets/style/test.css"],"script":["_assets/script/test1.js"]},"assets":[],"headings":[],"title":"","includes":[],"html":"
<p>Lorem
</p>/n"},"router":{"pathname":"page.html"},"lang":"ru"};
</script>
<script type="application/javascript"
src="_bundle/react.js"
>
</script>
<script type="application/javascript"
src="_bundle/app.js"
>
</script>
<script type="application/javascript"
src="_bundle/vendor.js"
>
</script>
</body>
</html>
`;
exports[`Allow load custom resources md2html with custom resources 4`] = `
<!DOCTYPE html>
<html lang="ru"
dir="ltr"
>
<head>
<meta charset="utf-8">
<meta name="viewport"
content="width=device-width, initial-scale=1.0"
>
Expand Down Expand Up @@ -416,9 +172,9 @@ 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":"."},"meta":{"metadata":[],"style":["../_assets/style/test.css"],"script":["../_assets/script/test1.js"]},"assets":[],"headings":[],"title":"","includes":[],"html":"
window.__DATA__ = {"data":{"leading":false,"toc":{"title":"Documentation","href":"index","items":[{"name":"Documentation","href":"page","id":"Documentation-RANDOM"},{"name":"Config","href":"project/config","id":"Config-RANDOM"}],"base":"."},"meta":{"metadata":[],"style":["../_assets/style/test.css"],"script":["../_assets/script/test1.js"]},"assets":[],"headings":[],"title":"","includes":[],"html":"
<p>Lorem
</p>/n"},"router":{"pathname":"../project/config.html"},"lang":"ru"};
</p>/n"},"router":{"pathname":"project/config.html"},"lang":"ru","langs":["ru"]};
</script>
<script type="application/javascript"
src="../_bundle/react.js"
Expand Down
Loading

0 comments on commit a22e516

Please sign in to comment.