File tree Expand file tree Collapse file tree 2 files changed +30
-0
lines changed
Expand file tree Collapse file tree 2 files changed +30
-0
lines changed Original file line number Diff line number Diff line change 11import { provideAnimations } from '@angular/platform-browser/animations' ;
22import { AngularPConnectService , getSdkComponentMap } from '@pega/angular-sdk-components' ;
33import { Preview , applicationConfig } from '@storybook/angular' ;
4+ import setPCoreMocks from '../__mocks__/pcoreMocks' ;
5+
6+ setPCoreMocks ( ) ;
47
58getSdkComponentMap ( ) ;
69
Original file line number Diff line number Diff line change 1+ export default function setPCoreMocks ( ) {
2+ if ( ! window . PCore ) {
3+ window . PCore = { } as any ;
4+ }
5+
6+ window . PCore . getEnvironmentInfo = ( ) => {
7+ return {
8+ getUseLocale : ( ) => 'en-GB' ,
9+ getLocale : ( ) => 'en-GB' ,
10+ getTimeZone : ( ) => ''
11+ } as any ;
12+ } ;
13+
14+ window . PCore . getLocaleUtils = ( ) => {
15+ return {
16+ getLocaleValue : ( value : any ) => value
17+ } as any ;
18+ } ;
19+
20+ window . PCore . getConstants = ( ) : any => {
21+ return {
22+ CASE_INFO : {
23+ INSTRUCTIONS : ''
24+ }
25+ } ;
26+ } ;
27+ }
You can’t perform that action at this time.
0 commit comments