This repository has been archived by the owner on Jun 16, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adjusted the version string in the meta element Signed-off-by: André Jaenisch <andre.jaenisch@posteo.de>
- Loading branch information
Showing
5 changed files
with
28 additions
and
69 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,13 @@ | ||
import test from 'ava'; | ||
import { eleventyPluginMetaGenerator } from '../src/eleventy-plugin-meta-generator.js'; | ||
|
||
const eleventyVersion = '1.0.1'; | ||
|
||
test("Renders a meta tag without version", async (t) => { | ||
t.is(await eleventyPluginMetaGenerator(), '<meta name="generator" content="Eleventy" />'); | ||
t.is(await eleventyPluginMetaGenerator(), `<meta name="generator" content="Eleventy" />`); | ||
}); | ||
|
||
// Unskip if you have @11ty/eleventy as devDependency or dependency | ||
test.skip("Renders a meta tag with a version", async (t) => { | ||
t.is(await eleventyPluginMetaGenerator(), `<meta name="generator" content="Eleventy v${eleventyVersion}" />`); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters