UNPKG

@shko.online/componentframework-mock

Version:

Mocking library to help with testing PowerApps Component Framework Components

18 lines (16 loc) 480 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.mockSetControlState = void 0; /* Copyright (c) 2022 Betim Beja and Shko Online LLC Licensed under the MIT license. */ const mockSetControlState = mockGenerator => { mockGenerator.context.mode.setControlState.callsFake(state => { mockGenerator.state = Object.assign({}, state, mockGenerator.state); return true; }); }; exports.mockSetControlState = mockSetControlState;