Skip to content

Commit

Permalink
updated tests
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarotero committed Aug 3, 2023
2 parents 5e70fc6 + 4c94846 commit fbf87ef
Show file tree
Hide file tree
Showing 63 changed files with 9,436 additions and 20,521 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ and this project try to adheres to [Semantic Versioning](https://semver.org/),
but not always is possible (due the use of unstable features from Deno).
Any BREAKING CHANGE between minor versions will be documented here in upper case.

## [1.18.5] - Unreleased
### Fixed
- Updated dependencies: `std`, `@types/react`.

## [1.18.4] - 2023-08-02
### Added
- Generic to `Page` to set the data interface. For example: `Page<Post>`.
Expand Down Expand Up @@ -2355,6 +2359,7 @@ The first version.
[#462]: https://github.com/lumeland/lume/issues/462
[#463]: https://github.com/lumeland/lume/issues/463
[1.18.5]: https://github.com/lumeland/lume/compare/v1.18.4...HEAD
[1.18.4]: https://github.com/lumeland/lume/compare/v1.18.3...v1.18.4
[1.18.3]: https://github.com/lumeland/lume/compare/v1.18.2...v1.18.3
[1.18.2]: https://github.com/lumeland/lume/compare/v1.18.1...v1.18.2
Expand Down
2 changes: 1 addition & 1 deletion deps/assert.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from "https://deno.land/std@0.196.0/assert/mod.ts";
export * from "https://deno.land/std@0.197.0/assert/mod.ts";
2 changes: 1 addition & 1 deletion deps/base64.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from "https://deno.land/std@0.196.0/encoding/base64.ts";
export * from "https://deno.land/std@0.197.0/encoding/base64.ts";
2 changes: 1 addition & 1 deletion deps/colors.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from "https://deno.land/std@0.196.0/fmt/colors.ts";
export * from "https://deno.land/std@0.197.0/fmt/colors.ts";
2 changes: 1 addition & 1 deletion deps/crypto.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from "https://deno.land/std@0.196.0/crypto/mod.ts";
export * from "https://deno.land/std@0.197.0/crypto/mod.ts";
2 changes: 1 addition & 1 deletion deps/flags.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from "https://deno.land/std@0.196.0/flags/mod.ts";
export * from "https://deno.land/std@0.197.0/flags/mod.ts";
2 changes: 1 addition & 1 deletion deps/front_matter.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from "https://deno.land/std@0.196.0/front_matter/any.ts";
export * from "https://deno.land/std@0.197.0/front_matter/any.ts";
2 changes: 1 addition & 1 deletion deps/fs.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from "https://deno.land/std@0.196.0/fs/mod.ts";
export * from "https://deno.land/std@0.197.0/fs/mod.ts";
2 changes: 1 addition & 1 deletion deps/hex.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from "https://deno.land/std@0.196.0/encoding/hex.ts";
export * from "https://deno.land/std@0.197.0/encoding/hex.ts";
6 changes: 3 additions & 3 deletions deps/http.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export { serveFile } from "https://deno.land/std@0.196.0/http/file_server.ts";
export { Server } from "https://deno.land/std@0.196.0/http/server.ts";
export { serveFile } from "https://deno.land/std@0.197.0/http/file_server.ts";
export { Server } from "https://deno.land/std@0.197.0/http/server.ts";

export type { ConnInfo } from "https://deno.land/std@0.196.0/http/server.ts";
export type { ConnInfo } from "https://deno.land/std@0.197.0/http/server.ts";
2 changes: 1 addition & 1 deletion deps/jsonc.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from "https://deno.land/std@0.196.0/jsonc/mod.ts";
export * from "https://deno.land/std@0.197.0/jsonc/mod.ts";
2 changes: 1 addition & 1 deletion deps/media_types.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from "https://deno.land/std@0.196.0/media_types/mod.ts";
export * from "https://deno.land/std@0.197.0/media_types/mod.ts";
2 changes: 1 addition & 1 deletion deps/path.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from "https://deno.land/std@0.196.0/path/mod.ts";
export * from "https://deno.land/std@0.197.0/path/mod.ts";
2 changes: 1 addition & 1 deletion deps/react.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// @deno-types="npm:@types/[email protected].15"
// @deno-types="npm:@types/[email protected].18"
export { default as React } from "npm:[email protected]";
// @deno-types="npm:@types/[email protected]/server"
export { default as ReactDOMServer } from "npm:[email protected]/server";
Expand Down
2 changes: 1 addition & 1 deletion deps/snapshot.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from "https://deno.land/std@0.196.0/testing/snapshot.ts";
export * from "https://deno.land/std@0.197.0/testing/snapshot.ts";
2 changes: 1 addition & 1 deletion deps/toml.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from "https://deno.land/std@0.196.0/toml/mod.ts";
export * from "https://deno.land/std@0.197.0/toml/mod.ts";
2 changes: 1 addition & 1 deletion deps/yaml.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from "https://deno.land/std@0.196.0/yaml/mod.ts";
export * from "https://deno.land/std@0.197.0/yaml/mod.ts";
210 changes: 71 additions & 139 deletions tests/__snapshots__/base_path.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -93,146 +93,78 @@ snapshot[`base_path plugin 2`] = `[]`;
snapshot[`base_path plugin 3`] = `
[
{
content: "<!DOCTYPE html>
" +
'<html lang="en"><head>
' +
' <meta charset="UTF-8">
' +
' <meta http-equiv="X-UA-Compatible" content="IE=edge">
' +
' <meta name="viewport" content="width=device-width, initial-scale=1.0">
' +
" <title>Document</title>
" +
' <link id="style-1" rel="stylesheet" href="/blog/style.css">
' +
' <link id="style-2" rel="stylesheet" href="other-styles.css">
' +
' <link id="style-3" rel="stylesheet" href="./other-styles.css">
' +
' <link id="preload-1" rel="preload" href="/blog/fonts/cicle_fina-webfont.woff2" as="font" type="font/woff2" crossorigin="">
' +
' <link id="preload-2" rel="preload" as="image" imagesrcset="/blog/image-400.jpg 400w, /blog/image-800.jpg 800w, /blog/image-1600.jpg 1600w" imagesizes="100vw">
' +
"</head>
" +
"<body>
" +
' <a id="link-1" href="/blog/">Home</a>
' +
' <a id="link-2" href="/blog/">Blog</a>
' +
' <img id="img-1" src="/blog/img/avatar.png">
' +
' <img id="img-2" srcset="/blog/image-400.jpg 400w, /blog/image-800.jpg 800w, /blog/image-1600.jpg 1600w" sizes="100vw" alt="">
' +
" <picture>
" +
' <source id="source-1" srcset="/blog/image.jpeg x1, /blog/image-big.jpeg">
' +
" </picture>
" +
' <script id="script-1" src="/blog/script.js"></script>
' +
"
" +
"</body></html>",
content: '<!DOCTYPE html>
<html lang="en"><head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link id="style-1" rel="stylesheet" href="/blog/style.css">
<link id="style-2" rel="stylesheet" href="other-styles.css">
<link id="style-3" rel="stylesheet" href="./other-styles.css">
<link id="preload-1" rel="preload" href="/blog/fonts/cicle_fina-webfont.woff2" as="font" type="font/woff2" crossorigin="">
<link id="preload-2" rel="preload" as="image" imagesrcset="/blog/image-400.jpg 400w, /blog/image-800.jpg 800w, /blog/image-1600.jpg 1600w" imagesizes="100vw">
</head>
<body>
<a id="link-1" href="/blog/">Home</a>
<a id="link-2" href="/blog/">Blog</a>
<img id="img-1" src="/blog/img/avatar.png">
<img id="img-2" srcset="/blog/image-400.jpg 400w, /blog/image-800.jpg 800w, /blog/image-1600.jpg 1600w" sizes="100vw" alt="">
<picture>
<source id="source-1" srcset="/blog/image.jpeg x1, /blog/image-big.jpeg">
</picture>
<script id="script-1" src="/blog/script.js"></script>
</body></html>',
data: {
children: "<!DOCTYPE html>
" +
'<html lang="en">
' +
"<head>
" +
' <meta charset="UTF-8">
' +
' <meta http-equiv="X-UA-Compatible" content="IE=edge">
' +
' <meta name="viewport" content="width=device-width, initial-scale=1.0">
' +
" <title>Document</title>
" +
' <link id="style-1" rel="stylesheet" href="/style.css">
' +
' <link id="style-2" rel="stylesheet" href="other-styles.css">
' +
' <link id="style-3" rel="stylesheet" href="./other-styles.css">
' +
' <link id="preload-1" rel="preload" href="/fonts/cicle_fina-webfont.woff2" as="font" type="font/woff2" crossorigin>
' +
' <link id="preload-2" rel="preload" as="image" imagesrcset="/image-400.jpg 400w, /image-800.jpg 800w, /image-1600.jpg 1600w" imagesizes="100vw">
' +
"</head>
" +
"<body>
" +
' <a id="link-1" href="/">Home</a>
' +
' <a id="link-2" href="/blog/">Blog</a>
' +
' <img id="img-1" src="/img/avatar.png">
' +
' <img id="img-2" srcset="/image-400.jpg 400w, /image-800.jpg 800w, /image-1600.jpg 1600w" sizes="100vw" alt="">
' +
" <picture>
" +
' <source id="source-1" srcset="/blog/image.jpeg x1, /blog/image-big.jpeg">
' +
" </picture>
" +
' <script id="script-1" src="/script.js"></script>
' +
"</body>
" +
"</html>",
content: "<!DOCTYPE html>
" +
'<html lang="en">
' +
"<head>
" +
' <meta charset="UTF-8">
' +
' <meta http-equiv="X-UA-Compatible" content="IE=edge">
' +
' <meta name="viewport" content="width=device-width, initial-scale=1.0">
' +
" <title>Document</title>
" +
' <link id="style-1" rel="stylesheet" href="/style.css">
' +
' <link id="style-2" rel="stylesheet" href="other-styles.css">
' +
' <link id="style-3" rel="stylesheet" href="./other-styles.css">
' +
' <link id="preload-1" rel="preload" href="/fonts/cicle_fina-webfont.woff2" as="font" type="font/woff2" crossorigin>
' +
' <link id="preload-2" rel="preload" as="image" imagesrcset="/image-400.jpg 400w, /image-800.jpg 800w, /image-1600.jpg 1600w" imagesizes="100vw">
' +
"</head>
" +
"<body>
" +
' <a id="link-1" href="/">Home</a>
' +
' <a id="link-2" href="/blog/">Blog</a>
' +
' <img id="img-1" src="/img/avatar.png">
' +
' <img id="img-2" srcset="/image-400.jpg 400w, /image-800.jpg 800w, /image-1600.jpg 1600w" sizes="100vw" alt="">
' +
" <picture>
" +
' <source id="source-1" srcset="/blog/image.jpeg x1, /blog/image-big.jpeg">
' +
" </picture>
" +
' <script id="script-1" src="/script.js"></script>
' +
"</body>
" +
"</html>",
children: '<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link id="style-1" rel="stylesheet" href="/style.css">
<link id="style-2" rel="stylesheet" href="other-styles.css">
<link id="style-3" rel="stylesheet" href="./other-styles.css">
<link id="preload-1" rel="preload" href="/fonts/cicle_fina-webfont.woff2" as="font" type="font/woff2" crossorigin>
<link id="preload-2" rel="preload" as="image" imagesrcset="/image-400.jpg 400w, /image-800.jpg 800w, /image-1600.jpg 1600w" imagesizes="100vw">
</head>
<body>
<a id="link-1" href="/">Home</a>
<a id="link-2" href="/blog/">Blog</a>
<img id="img-1" src="/img/avatar.png">
<img id="img-2" srcset="/image-400.jpg 400w, /image-800.jpg 800w, /image-1600.jpg 1600w" sizes="100vw" alt="">
<picture>
<source id="source-1" srcset="/blog/image.jpeg x1, /blog/image-big.jpeg">
</picture>
<script id="script-1" src="/script.js"></script>
</body>
</html>',
content: '<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link id="style-1" rel="stylesheet" href="/style.css">
<link id="style-2" rel="stylesheet" href="other-styles.css">
<link id="style-3" rel="stylesheet" href="./other-styles.css">
<link id="preload-1" rel="preload" href="/fonts/cicle_fina-webfont.woff2" as="font" type="font/woff2" crossorigin>
<link id="preload-2" rel="preload" as="image" imagesrcset="/image-400.jpg 400w, /image-800.jpg 800w, /image-1600.jpg 1600w" imagesizes="100vw">
</head>
<body>
<a id="link-1" href="/">Home</a>
<a id="link-2" href="/blog/">Blog</a>
<img id="img-1" src="/img/avatar.png">
<img id="img-2" srcset="/image-400.jpg 400w, /image-800.jpg 800w, /image-1600.jpg 1600w" sizes="100vw" alt="">
<picture>
<source id="source-1" srcset="/blog/image.jpeg x1, /blog/image-big.jpeg">
</picture>
<script id="script-1" src="/script.js"></script>
</body>
</html>',
date: [],
mergedKeys: [
"tags",
Expand Down
Loading

0 comments on commit fbf87ef

Please sign in to comment.