@shko.online/componentframework-mock
Version:
Mocking library to help with testing PowerApps Component Framework Components
11 lines (10 loc) • 318 B
JavaScript
/*
Copyright (c) 2022 Betim Beja and Shko Online LLC
Licensed under the MIT license.
*/
export const mockSetControlState = mockGenerator => {
mockGenerator.context.mode.setControlState.callsFake(state => {
mockGenerator.state = Object.assign({}, state, mockGenerator.state);
return true;
});
};