/*global jest*/ import { ConnectIframeProvider } from '../ConnectIframeProvider'; export class MockConnectIframeProvider implements ConnectIframeProvider { handleIframeUnload = jest.fn(); onHideInlineDialog = jest.fn(); onStoreNestedIframeJSON = jest.fn(); handleIframeLoadTimeout = jest.fn(); handleIframeLoadingStarted = jest.fn(); handleIframeLoadingComplete = jest.fn(); buildIframeStyles = jest.fn((loadingState, loadingStates) => loadingState !== loadingStates.LOADED ? {key: 'value'} : {}); getLoadingTimeoutMilliseconds = jest.fn().mockReturnValue(12000); };