@shko.online/componentframework-mock
Version:
Mocking library to help with testing PowerApps Component Framework Components
31 lines (29 loc) • 834 B
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.ClientMock = void 0;
var _sinon = require("sinon");
/*
Copyright (c) 2022 Betim Beja and Shko Online LLC
Licensed under the MIT license.
*/
class ClientMock {
constructor() {
this.disableScroll = void 0;
this.getClient = void 0;
this.getFormFactor = void 0;
this.isNetworkAvailable = void 0;
this.isOffline = void 0;
this.disableScroll = false;
this.getClient = (0, _sinon.stub)();
this.getClient.returns('Web');
this.getFormFactor = (0, _sinon.stub)();
this.getFormFactor.returns(1);
this.isNetworkAvailable = (0, _sinon.stub)();
this.isNetworkAvailable.returns(true);
this.isOffline = (0, _sinon.stub)();
this.isOffline.returns(false);
}
}
exports.ClientMock = ClientMock;