import { mount , shallow } from "enzyme" ; import * as React from "react" ; import { TreeBranch as Branch } from "../../core-react" ; describe ( "<Branch />" , ( ) => { it ( "should render" , ( ) => { mount ( < Branch />); } ) ; it ( "renders correctly" , ( ) => { shallow ( < Branch />).should.matchSnapshot(); } ) ; it ( "renders children correctly" , ( ) => { const wrapper = shallow ( < Branch > < div id = "unique" / > < /Branch>); wrapper . find ( "#unique" ) . should . have . lengthOf ( 1 ) ; } ) ; } ) ;