@shko.online/componentframework-mock
Version:
Mocking library to help with testing PowerApps Component Framework Components
23 lines (22 loc) • 941 B
TypeScript
/// <reference types="powerapps-component-framework" />
import type { SinonStub } from 'sinon';
import type { 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