Sha256: 7a13619e39d5a8e05cdf86f7c319fa503866ef46049dd36f41a99b9e119e17d5
Contents?: true
Size: 612 Bytes
Versions: 9
Compression:
Stored size: 612 Bytes
Contents
import { describe, it, expect } from "vitest" import { Text } from "./text" import { Bold } from "./bold" describe("Bold", () => { it("returns empty string if no params", () => { expect(new Bold().renderWrapper).toBe("<strong ></strong>") }) it("returns attributes and data attributes", () => { expect(new Bold({ id: "1", "data-foo": "bar" }).renderWrapper).toBe(`<strong id='1' data-foo='bar'></strong>`) }) it("adds children", () => { const text = new Text("Hello") const bold = new Bold() bold.add(text) expect(bold.renderWrapper).toBe(`<strong >Hello</strong>`) }) })
Version data entries
9 entries across 9 versions & 1 rubygems