@shko.online/componentframework-mock
Version:
Mocking library to help with testing PowerApps Component Framework Components
21 lines (20 loc) • 844 B
TypeScript
/// <reference types="powerapps-component-framework" />
import type { SinonStub } from 'sinon';
export declare class DeviceMock implements ComponentFramework.Device {
captureAudio: SinonStub<[
], Promise<ComponentFramework.FileObject>>;
captureImage: SinonStub<[
/*options*/ ComponentFramework.DeviceApi.CaptureImageOptions
], Promise<ComponentFramework.FileObject>>;
captureVideo: SinonStub<[
], Promise<ComponentFramework.FileObject>>;
getBarcodeValue: SinonStub<[
], Promise<string>>;
getCurrentPosition: SinonStub<[
], Promise<ComponentFramework.DeviceApi.Position>>;
pickFile: SinonStub<[
/*options*/ ComponentFramework.DeviceApi.PickFileOptions
], Promise<ComponentFramework.FileObject[]>>;
constructor();
}
//# sourceMappingURL=Device.mock.d.ts.map