UNPKG

@shko.online/componentframework-mock

Version:

Mocking library to help with testing PowerApps Component Framework Components

14 lines 854 B
import type { SinonSpy } from 'sinon'; import type { MockGenerator } from './MockGenerator'; import type { ShkoOnline } from '../ShkoOnline'; /** * Mocks the following APIs * - {@link ComponentFramework.Mode.setFullScreen} * - {@link ComponentFramework.Factory.requestRender} * - notifyOutputChanged function * @param mockGenerator The generator that controlls the context * @param getOutputs The plugin getOutputs function * @param executeUpdateView The callback function that triggers UpdateView from the framework */ export declare const mockNotifyOutputChanged: <TInputs extends ShkoOnline.PropertyTypes<TInputs>, TOutputs extends ShkoOnline.KnownTypes<TOutputs>>(mockGenerator: MockGenerator<TInputs, TOutputs>, getOutputs: SinonSpy<[], TOutputs>, executeUpdateView: () => void) => void; //# sourceMappingURL=mockNotifyOutputChanged.d.ts.map