Skip to main content
Module

x/lume/tests/__snapshots__/metas.test.ts.snap

πŸ”₯ Static site generator for Deno πŸ¦•
Very Popular
Go to Latest
File
export const snapshot = {};
snapshot[`metas plugin 1`] = `2`;
snapshot[`metas plugin 2`] = `{ formats: [ { engines: 1, ext: ".tmpl.ts", pageLoader: [AsyncFunction: module], }, { engines: 1, ext: ".tmpl.js", pageLoader: [AsyncFunction: module], }, { engines: undefined, ext: ".tmpl.json", pageLoader: [AsyncFunction: json], }, { dataLoader: [AsyncFunction: json], engines: undefined, ext: ".json", }, { engines: 1, ext: ".md", pageLoader: [AsyncFunction: text], }, { componentLoader: [AsyncFunction: module], dataLoader: [AsyncFunction: module], engines: 1, ext: ".js", }, { componentLoader: [AsyncFunction: module], dataLoader: [AsyncFunction: module], engines: 1, ext: ".ts", }, { componentLoader: [AsyncFunction: text], engines: 1, ext: ".njk", includesPath: "_includes", pageLoader: [AsyncFunction: text], }, { dataLoader: [AsyncFunction: yaml], engines: undefined, ext: ".yaml", pageLoader: [AsyncFunction: yaml], }, { dataLoader: [AsyncFunction: yaml], engines: undefined, ext: ".yml", pageLoader: [AsyncFunction: yaml], }, ],}`;
snapshot[`metas plugin 3`] = `[]`;
snapshot[`metas plugin 4`] = `{ content: '<!DOCTYPE html><html><head> <meta property="og:type" content="website"><meta property="og:site_name" content="My site"><meta property="og:locale" content="gl"><meta property="og:title" content="Custom title"><meta property="og:description" content="A very long custom description with a lot of text that will be truncated to a maximum of 155 characters and then append &quot;…&quot; to the end. Lorem ipsum dolor…"><meta property="og:url" content="http://localhost/page-1/"><meta property="og:image" content="http://localhost/my-image.png"><meta name="twitter:title" content="Custom title"><meta name="twitter:description" content="A very long custom description with a lot of text that will be truncated to a maximum of 155 characters and then append &quot;…&quot; to the end. Lorem ipsum dolor sit amet, consectetur adipiscing elit."><meta name="twitter:card" content="summary_large_image"><meta name="twitter:image" content="http://localhost/my-image.png"><meta name="twitter:site" content="@myUser"><meta itemprop="name" content="Custom title"><meta itemprop="description" content="A very long custom description with a lot of text that will be truncated to a maximum of 155 characters and then append &quot;…&quot; to the end. Lorem ipsum dolor…"><meta itemprop="image" content="http://localhost/my-image.png"><meta name="description" content="A very long custom description with a lot of text that will be truncated to a maximum of 155 characters and then append &quot;…&quot; to the end. Lorem ipsum dolor…"><meta name="keywords" content="one, two"><meta name="robots" content="index, follow"><meta name="theme-color" content="black"><meta name="generator" content="Lume testing"></head> <body> Hello world </body></html>', data: { content: "<html> <head> </head> <body> Hello world </body></html>", date: 1970-01-01T00:00:00.000Z, mergedKeys: { metas: "object", }, metas: { color: "black", description: 'A very long custom description with a lot of text that will be truncated to a maximum of 155 characters and then append "…" to the end. Lorem ipsum dolor sit amet, consectetur adipiscing elit.', generator: "Lume testing", icon: "/my-icon.png", image: "/my-image.png", keywords: [ "one", "two", ], lang: "gl", robots: true, site: "My site", title: "Custom title", twitter: "@myUser", }, page: undefined, paginate: [Function: paginate], search: Search {}, tags: [ ], url: "/page-1/", }, dest: { ext: ".html", path: "/page-1/index", }, src: { ext: ".njk", path: "/page-1", remote: undefined, },}`;
snapshot[`metas plugin 5`] = `{ content: '<!DOCTYPE html><html><head> <meta property="og:type" content="website"><meta property="og:site_name" content="My site"><meta property="og:locale" content="gl"><meta property="og:title" content="Relative paths"><meta property="og:description" content="Tests the use of relative path (to page.data.url) when filling out the og:image or og:icon URL"><meta property="og:url" content="http://localhost/page-2/"><meta property="og:image" content="http://localhost/page-2/my-image.png"><meta name="twitter:title" content="Relative paths"><meta name="twitter:description" content="Tests the use of relative path (to page.data.url) when filling out the og:image or og:icon URL"><meta name="twitter:card" content="summary_large_image"><meta name="twitter:image" content="http://localhost/page-2/my-image.png"><meta name="twitter:site" content="@myUser"><meta itemprop="name" content="Relative paths"><meta itemprop="description" content="Tests the use of relative path (to page.data.url) when filling out the og:image or og:icon URL"><meta itemprop="image" content="http://localhost/page-2/my-image.png"><meta name="description" content="Tests the use of relative path (to page.data.url) when filling out the og:image or og:icon URL"><meta name="keywords" content="one, two"><meta name="robots" content="noindex, nofollow, noarchive"><meta name="theme-color" content="black"><meta name="generator" content="Lume testing"></head> <body> Hello world </body></html>', data: { content: "<html> <head> </head> <body> Hello world </body></html>", date: 1970-01-01T00:00:00.000Z, mergedKeys: { metas: "object", }, metas: { color: "black", description: "Tests the use of relative path (to page.data.url) when filling out the og:image or og:icon URL", generator: "Lume testing", icon: "./my-icon.png", image: "./my-image.png", keywords: [ "one", "two", ], lang: "gl", robots: false, site: "My site", title: "Relative paths", twitter: "@myUser", }, page: undefined, paginate: [Function: paginate], search: Search {}, tags: [ ], url: "/page-2/", }, dest: { ext: ".html", path: "/page-2/index", }, src: { ext: ".njk", path: "/page-2", remote: undefined, },}`;