@shko.online/componentframework-mock
Version:
Mocking library to help with testing PowerApps Component Framework Components
20 lines • 1.15 kB
TypeScript
/// <reference types="powerapps-component-framework" />
import type { SinonStub } from 'sinon';
type DateTimeFieldBehavior = ComponentFramework.FormattingApi.Types.DateTimeFieldBehavior;
export declare class FormattingMock implements ComponentFramework.Formatting {
formatCurrency: SinonStub<[value: number, precision?: number, currencySymbol?: string], string>;
formatDecimal: SinonStub<[value: number, precision?: number], string>;
formatDateAsFilterStringInUTC: SinonStub<[value: Date, includeTime?: boolean], string>;
formatDateLong: SinonStub<[value: Date], string>;
formatDateLongAbbreviated: SinonStub<[value: Date], string>;
formatDateShort: SinonStub<[value: Date, includeTime?: boolean], string>;
formatDateYearMonth: SinonStub<[value: Date], string>;
formatInteger: SinonStub<[value: number], string>;
formatLanguage: SinonStub<[value: number], string>;
formatTime: SinonStub<[value: Date, behavior: DateTimeFieldBehavior], string>;
getWeekOfYear: SinonStub<[value: Date], number>;
locale: 'en-US' | 'it-IT';
constructor();
}
export {};
//# sourceMappingURL=Formatting.mock.d.ts.map