UNPKG

@shko.online/componentframework-mock

Version:

Mocking library to help with testing PowerApps Component Framework Components

23 lines (22 loc) 931 B
/// <reference types="powerapps-component-framework" /> import { SinonStub } from 'sinon'; import { ShkoOnline } from '../ShkoOnline'; export declare class UtilityMock implements ComponentFramework.Utility { getEntityMetadata: SinonStub<[ /*entityName*/ string, /*attributes*/ string[] ], Promise<ShkoOnline.EntityMetadata>>; hasEntityPrivilege: SinonStub<[ /*entityTypeName*/ string, /*privilegeType*/ ComponentFramework.PropertyHelper.Types.PrivilegeType, /*privilegeDepth*/ ComponentFramework.PropertyHelper.Types.PrivilegeDepth ], boolean>; lookupObjects: SinonStub<[ /*lookupOptions*/ ComponentFramework.UtilityApi.LookupOptions ], Promise<ComponentFramework.LookupValue[]>>; loadDependency: SinonStub<[ /*dependencyName*/ string ], Promise<unknown>>; constructor(); } //# sourceMappingURL=Utility.mock.d.ts.map