import { mount , shallow } from "enzyme" ; import * as React from "react" ; import { Gap } from "../../core-react" ; describe ( "<Gap />" , ( ) => { it ( "should render" , ( ) => { const wrapper = mount ( < Gap />); wrapper . unmount ( ) ; } ) ; it ( "renders correctly" , ( ) => { shallow ( < Gap />).should.matchSnapshot(); } ) ; it ( "renders correctly with size" , ( ) => { shallow ( < Gap size = "20px" / > ) . should . matchSnapshot ( ) ; } ) ; } ) ;