diff --git a/test/IdAttributePluginTest.js b/test/IdAttributePluginTest.js index 85e9ea6bd..3d1f9f3c5 100644 --- a/test/IdAttributePluginTest.js +++ b/test/IdAttributePluginTest.js @@ -3,17 +3,17 @@ import test from "ava"; import { IdAttributePlugin } from "../src/Plugins/IdAttributePlugin.js"; import Eleventy from "../src/Eleventy.js"; -test("Using the transform (and the filter too)", async (t) => { +test("Using the IdAttribute plugin #3356", async (t) => { let elev = new Eleventy("./test/stubs-virtual/", "./test/stubs-virtual/_site", { config: function (eleventyConfig) { eleventyConfig.addPlugin(IdAttributePlugin); - eleventyConfig.addTemplate("test.njk", `

This is a heading

This is another heading

`, {}); + eleventyConfig.addTemplate("test.njk", `

This is a heading

This is another heading

This is another heading

This is another heading

`, {}); }, }); elev.disableLogger(); let results = await elev.toJSON(); - t.is(results[0].content, `

This is a heading

This is another heading

`); + t.is(results[0].content, `

This is a heading

This is another heading

This is another heading

This is another heading

`); });