import * as React from "react" ; import { Orientation } from "@itwin/core-react" ; import { render } from "@testing-library/react" ; import { TableStructValueRenderer } from "../../../../../components-react/properties/renderers/value/table/StructValueRenderer" ; import TestUtils from "../../../../TestUtils" ; describe ( "StructValueRenderer" , ( ) => { it ( "renders correctly" , ( ) => { const record = TestUtils . createStructProperty ( "Pipe" ) ; record . property . typename = "map" ; const renderer = render ( < TableStructValueRenderer onDialogOpen = { ( ) => { } } orientation = { Orientation . Horizontal } propertyRecord = { record } / > ) ; renderer . getByText ( "{map}" ) ; } ) ; } ) ;