import { expect } from "chai" ; import { mount } from "enzyme" ; import * as React from "react" ; import { getClassName } from "@itwin/appui-abstract" ; describe ( "getClassName" , ( ) => { class NamedComponent extends React . Component { public override render ( ) { expect ( getClassName ( this ) ) . to . eq ( "NamedComponent" ) ; return null ; } } it ( "should be the name of the React component class" , ( ) => { mount ( < NamedComponent />); } ) ; } ) ;