Skip to content

Commit

Permalink
test(Heading): remove unnecessary dummy component for spec test
Browse files Browse the repository at this point in the history
  • Loading branch information
jcfranco committed Feb 3, 2023
1 parent f69995e commit 0840e82
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/components/functional/Heading.spec.tsx
Original file line number Diff line number Diff line change
@@ -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";

Expand All @@ -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: () => (
<Heading class="test" level={1}>
My Heading
Expand All @@ -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: () => <Heading class="test">My Heading</Heading>
});

Expand Down

0 comments on commit 0840e82

Please sign in to comment.