From 0840e825e7f2b859d3e9ea2190283e5314ad1ff5 Mon Sep 17 00:00:00 2001 From: JC Franco Date: Thu, 2 Feb 2023 19:57:08 -0800 Subject: [PATCH] test(Heading): remove unnecessary dummy component for spec test --- src/components/functional/Heading.spec.tsx | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/components/functional/Heading.spec.tsx b/src/components/functional/Heading.spec.tsx index 41f206e1cea..cb5b1a7031f 100644 --- a/src/components/functional/Heading.spec.tsx +++ b/src/components/functional/Heading.spec.tsx @@ -1,4 +1,4 @@ -import { Component, h } from "@stencil/core"; +import { h } from "@stencil/core"; import { newSpecPage } from "@stencil/core/testing"; import { constrainHeadingLevel, Heading } from "./Heading"; @@ -13,13 +13,10 @@ describe("constrainHeadingLevel", () => { }); }); -@Component({ tag: "dummy-component" }) -class Dummy {} - describe("Heading", () => { it("should render", async () => { const page = await newSpecPage({ - components: [Dummy], // Required so we are feeding it a Dummy component + components: [], template: () => ( My Heading @@ -32,7 +29,7 @@ describe("Heading", () => { it("should render a div", async () => { const page = await newSpecPage({ - components: [Dummy], // Required so we are feeding it a Dummy component + components: [], template: () => My Heading });