import { mount , shallow } from "enzyme" ; import * as React from "react" ; import { Spinner , SpinnerSize } from "../../core-react" ; describe ( "<Spinner />" , ( ) => { it ( "should render" , ( ) => { const wrapper = mount ( < Spinner />); wrapper . unmount ( ) ; } ) ; it ( "renders correctly" , ( ) => { shallow ( < Spinner />).should.matchSnapshot(); } ) ; it ( "should render small" , ( ) => { shallow ( < Spinner size = { SpinnerSize . Small } / > ) . should . matchSnapshot ( ) ; } ) ; it ( "should render medium" , ( ) => { shallow ( < Spinner size = { SpinnerSize . Medium } / > ) . should . matchSnapshot ( ) ; } ) ; it ( "should render large" , ( ) => { shallow ( < Spinner size = { SpinnerSize . Large } / > ) . should . matchSnapshot ( ) ; } ) ; it ( "should render x-large" , ( ) => { shallow ( < Spinner size = { SpinnerSize . XLarge } / > ) . should . matchSnapshot ( ) ; } ) ; it ( "should render with sizeClass" , ( ) => { shallow ( < Spinner sizeClass = "test-class" / > ) . should . matchSnapshot ( ) ; } ) ; } ) ;