import React from 'react' ; import { mount } from 'enzyme' ; import { RcThemeProvider } from '@ringcentral/juno' ; param page param sourceProps export const moduleUIPageMount = ( page , sourceProps ) => { const obj = page ( sourceProps ) ; const { Component , props } = obj ; return mount ( < RcThemeProvider > < Component { ... props } / > < /RcThemeProvider>); } ;