Skip to content

Commit

Permalink
sort files for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarotero committed Jan 30, 2025
1 parent 9ea352e commit 50c9e77
Show file tree
Hide file tree
Showing 26 changed files with 3,537 additions and 3,543 deletions.
560 changes: 280 additions & 280 deletions tests/__snapshots__/brotli.test.ts.snap

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions tests/__snapshots__/build.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ snapshot[`build a simple site 3`] = `
content: "<h1>Welcome</h1>
",
data: {
basename: "foo",
basename: "page1",
children: "<h1>Welcome</h1>
",
content: "# Welcome
Expand All @@ -166,21 +166,21 @@ snapshot[`build a simple site 3`] = `
paginate: "paginate",
search: [],
tags: "Array(0)",
title: "Second page",
url: "/page2.html",
title: "First page",
url: "/page1/",
},
src: {
asset: false,
ext: ".md",
path: "/foo",
path: "/page1",
remote: undefined,
},
},
{
content: "<h1>Welcome</h1>
",
data: {
basename: "page1",
basename: "foo",
children: "<h1>Welcome</h1>
",
content: "# Welcome
Expand All @@ -197,13 +197,13 @@ snapshot[`build a simple site 3`] = `
paginate: "paginate",
search: [],
tags: "Array(0)",
title: "First page",
url: "/page1/",
title: "Second page",
url: "/page2.html",
},
src: {
asset: false,
ext: ".md",
path: "/page1",
path: "/foo",
remote: undefined,
},
},
Expand Down
96 changes: 48 additions & 48 deletions tests/__snapshots__/code_highlight.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -117,30 +117,6 @@ snapshot[`code_hightlight plugin with default css file 2`] = `[]`;

snapshot[`code_hightlight plugin with default css file 3`] = `
[
{
content: "pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}/*!
Theme: a11y-dark
Author: @ericwbailey
Maintainer: @ericwbailey
Based on the Tomorrow Night Eighties theme: https://github.com/isagalaev/highlight.js/blob/master/src/styles/tomorrow-night-eighties.css
*/.hljs{background:#2b2b2b;color:#f8f8f2}.hljs-comment,.hljs-quote{color:#d4d0ab}.hljs-deletion,.hljs-name,.hljs-regexp,.hljs-selector-class,.hljs-selector-id,.hljs-tag,.hljs-template-variable,.hljs-variable{color:#ffa07a}.hljs-built_in,.hljs-link,.hljs-literal,.hljs-meta,.hljs-number,.hljs-params,.hljs-type{color:#f5ab35}.hljs-attribute{color:gold}.hljs-addition,.hljs-bullet,.hljs-string,.hljs-symbol{color:#abe338}.hljs-section,.hljs-title{color:#00e0e0}.hljs-keyword,.hljs-selector-tag{color:#dcc6e0}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:700}@media screen and (-ms-high-contrast:active){.hljs-addition,.hljs-attribute,.hljs-built_in,.hljs-bullet,.hljs-comment,.hljs-link,.hljs-literal,.hljs-meta,.hljs-number,.hljs-params,.hljs-quote,.hljs-string,.hljs-symbol,.hljs-type{color:highlight}.hljs-keyword,.hljs-selector-tag{font-weight:700}}",
data: {
basename: "styles",
page: [
"src",
"data",
"asset",
],
url: "/styles.css",
},
src: {
asset: true,
ext: "",
path: "",
remote: undefined,
},
},
{
content: '<!DOCTYPE html>
<html><head></head><body><h1>Code highlight plugin testing</h1>
Expand Down Expand Up @@ -250,6 +226,30 @@ p {
remote: undefined,
},
},
{
content: "pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}/*!
Theme: a11y-dark
Author: @ericwbailey
Maintainer: @ericwbailey
Based on the Tomorrow Night Eighties theme: https://github.com/isagalaev/highlight.js/blob/master/src/styles/tomorrow-night-eighties.css
*/.hljs{background:#2b2b2b;color:#f8f8f2}.hljs-comment,.hljs-quote{color:#d4d0ab}.hljs-deletion,.hljs-name,.hljs-regexp,.hljs-selector-class,.hljs-selector-id,.hljs-tag,.hljs-template-variable,.hljs-variable{color:#ffa07a}.hljs-built_in,.hljs-link,.hljs-literal,.hljs-meta,.hljs-number,.hljs-params,.hljs-type{color:#f5ab35}.hljs-attribute{color:gold}.hljs-addition,.hljs-bullet,.hljs-string,.hljs-symbol{color:#abe338}.hljs-section,.hljs-title{color:#00e0e0}.hljs-keyword,.hljs-selector-tag{color:#dcc6e0}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:700}@media screen and (-ms-high-contrast:active){.hljs-addition,.hljs-attribute,.hljs-built_in,.hljs-bullet,.hljs-comment,.hljs-link,.hljs-literal,.hljs-meta,.hljs-number,.hljs-params,.hljs-quote,.hljs-string,.hljs-symbol,.hljs-type{color:highlight}.hljs-keyword,.hljs-selector-tag{font-weight:700}}",
data: {
basename: "styles",
page: [
"src",
"data",
"asset",
],
url: "/styles.css",
},
src: {
asset: true,
ext: "",
path: "",
remote: undefined,
},
},
]
`;
Expand Down Expand Up @@ -370,30 +370,6 @@ snapshot[`code_hightlight plugin 2`] = `[]`;
snapshot[`code_hightlight plugin 3`] = `
[
{
content: "pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}/*!
Theme: a11y-dark
Author: @ericwbailey
Maintainer: @ericwbailey
Based on the Tomorrow Night Eighties theme: https://github.com/isagalaev/highlight.js/blob/master/src/styles/tomorrow-night-eighties.css
*/.hljs{background:#2b2b2b;color:#f8f8f2}.hljs-comment,.hljs-quote{color:#d4d0ab}.hljs-deletion,.hljs-name,.hljs-regexp,.hljs-selector-class,.hljs-selector-id,.hljs-tag,.hljs-template-variable,.hljs-variable{color:#ffa07a}.hljs-built_in,.hljs-link,.hljs-literal,.hljs-meta,.hljs-number,.hljs-params,.hljs-type{color:#f5ab35}.hljs-attribute{color:gold}.hljs-addition,.hljs-bullet,.hljs-string,.hljs-symbol{color:#abe338}.hljs-section,.hljs-title{color:#00e0e0}.hljs-keyword,.hljs-selector-tag{color:#dcc6e0}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:700}@media screen and (-ms-high-contrast:active){.hljs-addition,.hljs-attribute,.hljs-built_in,.hljs-bullet,.hljs-comment,.hljs-link,.hljs-literal,.hljs-meta,.hljs-number,.hljs-params,.hljs-quote,.hljs-string,.hljs-symbol,.hljs-type{color:highlight}.hljs-keyword,.hljs-selector-tag{font-weight:700}}",
data: {
basename: "theme",
page: [
"src",
"data",
"asset",
],
url: "/theme.css",
},
src: {
asset: true,
ext: "",
path: "",
remote: undefined,
},
},
{
content: '<!DOCTYPE html>
<html><head></head><body><h1>Code highlight plugin testing</h1>
Expand Down Expand Up @@ -503,5 +479,29 @@ p {
remote: undefined,
},
},
{
content: "pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}/*!
Theme: a11y-dark
Author: @ericwbailey
Maintainer: @ericwbailey
Based on the Tomorrow Night Eighties theme: https://github.com/isagalaev/highlight.js/blob/master/src/styles/tomorrow-night-eighties.css
*/.hljs{background:#2b2b2b;color:#f8f8f2}.hljs-comment,.hljs-quote{color:#d4d0ab}.hljs-deletion,.hljs-name,.hljs-regexp,.hljs-selector-class,.hljs-selector-id,.hljs-tag,.hljs-template-variable,.hljs-variable{color:#ffa07a}.hljs-built_in,.hljs-link,.hljs-literal,.hljs-meta,.hljs-number,.hljs-params,.hljs-type{color:#f5ab35}.hljs-attribute{color:gold}.hljs-addition,.hljs-bullet,.hljs-string,.hljs-symbol{color:#abe338}.hljs-section,.hljs-title{color:#00e0e0}.hljs-keyword,.hljs-selector-tag{color:#dcc6e0}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:700}@media screen and (-ms-high-contrast:active){.hljs-addition,.hljs-attribute,.hljs-built_in,.hljs-bullet,.hljs-comment,.hljs-link,.hljs-literal,.hljs-meta,.hljs-number,.hljs-params,.hljs-quote,.hljs-string,.hljs-symbol,.hljs-type{color:highlight}.hljs-keyword,.hljs-selector-tag{font-weight:700}}",
data: {
basename: "theme",
page: [
"src",
"data",
"asset",
],
url: "/theme.css",
},
src: {
asset: true,
ext: "",
path: "",
remote: undefined,
},
},
]
`;
336 changes: 168 additions & 168 deletions tests/__snapshots__/esbuild.test.ts.snap

Large diffs are not rendered by default.

128 changes: 64 additions & 64 deletions tests/__snapshots__/feed.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,70 @@ snapshot[`RSS plugin 2`] = `[]`;

snapshot[`RSS plugin 3`] = `
[
{
content: "<p>This page is exported to <code>/404.html</code>, not <code>/404/index.html</code></p>
",
data: {
basename: "404",
children: "<p>This page is exported to <code>/404.html</code>, not <code>/404/index.html</code></p>
",
content: "This page is exported to \`/404.html\`, not \`/404/index.html\`
",
date: [],
mergedKeys: [
"tags",
],
page: [
"src",
"data",
"asset",
],
paginate: "paginate",
search: [],
tags: "Array(0)",
url: "/404.html",
},
src: {
asset: false,
ext: ".md",
path: "/404",
remote: undefined,
},
},
{
content: "<!DOCTYPE html>
<html><head></head><body>Content of Page 5</body></html>",
data: {
author: [
"name",
"url",
],
basename: "page5",
children: "Content of Page 5",
content: "Content of Page 5",
date: [],
mergedKeys: [
"tags",
],
page: [
"src",
"data",
"asset",
],
paginate: "paginate",
published: "1979-06-21T23:45:00.000Z",
search: [],
tags: "Array(0)",
title: "Page **5**",
url: "/page5/",
},
src: {
asset: false,
ext: ".yaml",
path: "/page5",
remote: undefined,
},
},
{
content: '{"version":"https://jsonfeed.org/version/1","title":"My RSS Feed","home_page_url":"https://example.com/","feed_url":"https://example.com/feed.json","author":{"name":"Laura Rubio"},"items":[{"id":"https://example.com/page5/","url":"https://example.com/page5/","title":"PAGE 5","author":{"name":"Óscar","url":"https://oscarotero.com"},"content_html":"Content of Page 5","date_published":"Thu, 21 Jun 1979 23:45:00 GMT","date_modified":"Thu, 21 Jun 1979 23:45:00 GMT"}]}',
data: {
Expand Down Expand Up @@ -204,69 +268,5 @@ snapshot[`RSS plugin 3`] = `
remote: undefined,
},
},
{
content: "<p>This page is exported to <code>/404.html</code>, not <code>/404/index.html</code></p>
",
data: {
basename: "404",
children: "<p>This page is exported to <code>/404.html</code>, not <code>/404/index.html</code></p>
",
content: "This page is exported to \`/404.html\`, not \`/404/index.html\`
",
date: [],
mergedKeys: [
"tags",
],
page: [
"src",
"data",
"asset",
],
paginate: "paginate",
search: [],
tags: "Array(0)",
url: "/404.html",
},
src: {
asset: false,
ext: ".md",
path: "/404",
remote: undefined,
},
},
{
content: "<!DOCTYPE html>
<html><head></head><body>Content of Page 5</body></html>",
data: {
author: [
"name",
"url",
],
basename: "page5",
children: "Content of Page 5",
content: "Content of Page 5",
date: [],
mergedKeys: [
"tags",
],
page: [
"src",
"data",
"asset",
],
paginate: "paginate",
published: "1979-06-21T23:45:00.000Z",
search: [],
tags: "Array(0)",
title: "Page **5**",
url: "/page5/",
},
src: {
asset: false,
ext: ".yaml",
path: "/page5",
remote: undefined,
},
},
]
`;
Loading

0 comments on commit 50c9e77

Please sign in to comment.