UNPKG

@shko.online/componentframework-mock

Version:

Mocking library to help with testing PowerApps Component Framework Components

24 lines (22 loc) 634 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.FactoryMock = void 0; var _sinon = require("sinon"); var _FactoryApi = require("./FactoryApi"); /* Copyright (c) 2022 Betim Beja and Shko Online LLC Licensed under the MIT license. */ class FactoryMock { constructor() { this._popupService = new _FactoryApi.PopupServiceMock(); this.getPopupService = void 0; this.requestRender = void 0; this.getPopupService = (0, _sinon.stub)(); this.getPopupService.returns(this._popupService); this.requestRender = (0, _sinon.stub)(); } } exports.FactoryMock = FactoryMock;