File tree Expand file tree Collapse file tree
plugins/xt-finance/projects/finance-plugin/src/app/test-component Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ import { provideZonelessChangeDetection } from '@angular/core';
66import { registerFinancePlugin } from '../../../../finance/src/lib/register' ;
77import { XtResolverService } from 'xt-components' ;
88import { provideNoopAnimations } from '@angular/platform-browser/animations' ;
9+ import { DummyCurrencyComponent } from '../dummy-currency/dummy-currency.component' ;
910
1011describe ( 'TestComponent' , ( ) => {
1112 let component : TestComponent ;
@@ -20,8 +21,17 @@ describe('TestComponent', () => {
2021 . compileComponents ( ) ;
2122
2223 resolver = TestBed . inject ( XtResolverService ) ;
23- resolver . registerTypes ( {
24- currency : 'string'
24+ // Add the currency plugin to allow test
25+ resolver . registerPlugin ( {
26+ name :'dummy-currency' ,
27+ components :[ {
28+ componentName :'DummyCurrency' ,
29+ componentClass : DummyCurrencyComponent ,
30+ typesHandled :[ 'currency' ]
31+ } ] ,
32+ types : {
33+ currency : 'string'
34+ }
2535 } ) ;
2636
2737 registerFinancePlugin ( TestBed . inject ( XtResolverService ) ) ;
You can’t perform that action at this time.
0 commit comments