@@ -79,10 +79,10 @@ describe('ErrorComponent', () => {
7979 fixture . componentRef . setInput ( 'context' , testContext ) ;
8080
8181 await component . ngOnInit ( ) ;
82- expect ( component . config . scene ) . toBe ( 'NoEntries' ) ;
83- expect ( component . config . illustratedMessageTitle ) . toBe ( 'translated text' ) ;
84- expect ( component . config . illustratedMessageText ) . toBe ( 'translated text' ) ;
85- expect ( component . config . buttons ) . toBeDefined ( ) ;
82+ expect ( component . config ( ) . scene ) . toBe ( 'NoEntries' ) ;
83+ expect ( component . config ( ) . illustratedMessageTitle ) . toBe ( 'translated text' ) ;
84+ expect ( component . config ( ) . illustratedMessageText ) . toBe ( 'translated text' ) ;
85+ expect ( component . config ( ) . buttons ) . toBeDefined ( ) ;
8686 } ) ;
8787
8888 it ( 'should set 403 config' , async ( ) => {
@@ -94,11 +94,11 @@ describe('ErrorComponent', () => {
9494 fixture . componentRef . setInput ( 'context' , testContext ) ;
9595
9696 await component . ngOnInit ( ) ;
97- expect ( component . config . scene ) . toBe ( 'tnt/UnsuccessfulAuth' ) ;
98- expect ( component . config . illustratedMessageTitle ) . toBe ( '' ) ;
99- expect ( component . config . illustratedMessageText ) . toBe ( 'translated text' ) ;
100- expect ( component . config . buttons ) . toBeDefined ( ) ;
101- expect ( component . config . buttons ?. length ) . toBe ( 2 ) ;
97+ expect ( component . config ( ) . scene ) . toBe ( 'tnt/UnsuccessfulAuth' ) ;
98+ expect ( component . config ( ) . illustratedMessageTitle ) . toBe ( '' ) ;
99+ expect ( component . config ( ) . illustratedMessageText ) . toBe ( 'translated text' ) ;
100+ expect ( component . config ( ) . buttons ) . toBeDefined ( ) ;
101+ expect ( component . config ( ) . buttons ?. length ) . toBe ( 2 ) ;
102102 } ) ;
103103
104104 it ( 'should set default error config for unknown error code' , async ( ) => {
@@ -110,11 +110,10 @@ describe('ErrorComponent', () => {
110110 fixture . componentRef . setInput ( 'context' , testContext ) ;
111111
112112 await component . ngOnInit ( ) ;
113- expect ( component . config . scene ) . toBe ( 'UnableToLoad' ) ;
114- expect ( component . config . illustratedMessageTitle ) . toBe ( 'translated text' ) ;
115- expect ( component . config . illustratedMessageText ) . toBe ( '' ) ;
116- expect ( component . config . buttons ) . toBeDefined ( ) ;
117- expect ( component . config . buttons ?. length ) . toBe ( 0 ) ;
113+ expect ( component . config ( ) . scene ) . toBe ( 'UnableToLoad' ) ;
114+ expect ( component . config ( ) . illustratedMessageTitle ) . toBe ( 'translated text' ) ;
115+ expect ( component . config ( ) . illustratedMessageText ) . toBe ( '' ) ;
116+ expect ( component . config ( ) . buttons ) . toBeDefined ( ) ;
118117 } ) ;
119118 } ) ;
120119} ) ;
0 commit comments