@shko.online/componentframework-mock
Version:
Mocking library to help with testing PowerApps Component Framework Components
17 lines (16 loc) • 465 B
JavaScript
/*
Copyright (c) 2022 Betim Beja and Shko Online LLC
Licensed under the MIT license.
*/
import { stub } from 'sinon';
import { PopupServiceMock } from './FactoryApi';
export class FactoryMock {
constructor() {
this._popupService = new PopupServiceMock();
this.getPopupService = void 0;
this.requestRender = void 0;
this.getPopupService = stub();
this.getPopupService.returns(this._popupService);
this.requestRender = stub();
}
}