Skip to content

Commit

Permalink
Add skipped test for #3400
Browse files Browse the repository at this point in the history
  • Loading branch information
zachleat committed Aug 8, 2024
1 parent 3676a49 commit 5abe230
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions test/EleventyTest-Shortcodes.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import test from "ava";
import Eleventy from "../src/Eleventy.js";

test.skip("#3400: Both a paired and unpaired shortcode.", async (t) => {
let count = 0;
let elev = new Eleventy("./test/stubs-virtual/", undefined, {
config: function(eleventyConfig) {
eleventyConfig.addShortcode("single", function() {
count++;
});
eleventyConfig.addPairedShortcode("single", function() {
count++;
});

eleventyConfig.addTemplate("test.njk", `{% single %}
{% single %}{% endsingle %}`, {});
}
});

let results = await elev.toJSON();
t.is(count, 2);
});

0 comments on commit 5abe230

Please sign in to comment.