Sha256: 7fcc56f923c98db5f93dbe315abc7a198499a8f1f948dd6809890b022828c68c
Contents?: true
Size: 662 Bytes
Versions: 36
Compression:
Stored size: 662 Bytes
Contents
import { ensureAccessible, renderKit } from "../utilities/test-utils" import Table from "./_table" const props = { data: { testid: "table" }, sticky: false } it("should be accessible", async () => { ensureAccessible(Table, props) }) test("when sticky is true", () => { const kit = renderKit(Table, props, { sticky: true }) expect(kit).toHaveClass("pb_table table-sm table-responsive-collapse table-card sticky-header table-collapse-sm") }) test("when striped is true", () => { const kit = renderKit(Table, props, { striped: true }) expect(kit).toHaveClass("pb_table table-sm table-responsive-collapse table-card striped table-collapse-sm") })
Version data entries
36 entries across 36 versions & 1 rubygems