@@ -29,7 +29,7 @@ describe('services/NotificationService', () => {
2929 // configure mock for create request
3030 mock . onPost ( `${ context . getBaseUrl ( ) } /${ Constants . Notification . ENDPOINT_PATH } ` )
3131 . reply ( 200 , new Response (
32- new Item ( { ...notification } , 'VendorNotification ' ) ,
32+ new Item ( { ...notification } , 'Notification ' ) ,
3333 ) ) ;
3434
3535 const entity = await NotificationService . create ( context , notification ) ;
@@ -38,10 +38,10 @@ describe('services/NotificationService', () => {
3838 expect ( entity . getProperty ( 'number' , null ) ) . toBe ( notification . number ) ;
3939 expect ( entity . getProperty ( 'name' , null ) ) . toBe ( notification . name ) ;
4040 expect ( entity . getProperty ( 'active' , null ) ) . toBe ( notification . active ) ;
41- expect ( entity . getProperty ( 'type ' , null ) ) . toBe ( notification . type ) ;
41+ expect ( entity . getProperty ( 'protocol ' , null ) ) . toBe ( notification . protocol ) ;
4242 expect ( entity . getProperty ( 'events' , null ) ) . toBe ( notification . events ) ;
4343 expect ( entity . getProperty ( 'payload' , null ) ) . toBe ( notification . payload ) ;
44- expect ( entity . getProperty ( 'url ' , null ) ) . toBe ( notification . url ) ;
44+ expect ( entity . getProperty ( 'endpoint ' , null ) ) . toBe ( notification . endpoint ) ;
4545 expect ( entity . getProperty ( 'custom_property' , null ) ) . toBe ( notification . custom_property ) ;
4646 } ) ;
4747
@@ -52,7 +52,7 @@ describe('services/NotificationService', () => {
5252 // configure mock for get request
5353 mock . onGet ( `${ context . getBaseUrl ( ) } /${ Constants . Notification . ENDPOINT_PATH } /${ notification . number } ` )
5454 . reply ( 200 , new Response (
55- new Item ( { ...notification } , 'VendorNotification ' ) ,
55+ new Item ( { ...notification } , 'Notification ' ) ,
5656 ) ) ;
5757
5858 const entity = await NotificationService . get ( context , notification . number ) ;
@@ -61,10 +61,10 @@ describe('services/NotificationService', () => {
6161 expect ( entity . getProperty ( 'number' , null ) ) . toBe ( notification . number ) ;
6262 expect ( entity . getProperty ( 'name' , null ) ) . toBe ( notification . name ) ;
6363 expect ( entity . getProperty ( 'active' , null ) ) . toBe ( notification . active ) ;
64- expect ( entity . getProperty ( 'type ' , null ) ) . toBe ( notification . type ) ;
64+ expect ( entity . getProperty ( 'protocol ' , null ) ) . toBe ( notification . protocol ) ;
6565 expect ( entity . getProperty ( 'events' , null ) ) . toBe ( notification . events ) ;
6666 expect ( entity . getProperty ( 'payload' , null ) ) . toBe ( notification . payload ) ;
67- expect ( entity . getProperty ( 'url ' , null ) ) . toBe ( notification . url ) ;
67+ expect ( entity . getProperty ( 'endpoint ' , null ) ) . toBe ( notification . endpoint ) ;
6868 expect ( entity . getProperty ( 'custom_property' , null ) ) . toBe ( notification . custom_property ) ;
6969 } ) ;
7070
@@ -91,7 +91,7 @@ describe('services/NotificationService', () => {
9191
9292 // configure mock for list request
9393 mock . onGet ( `${ context . getBaseUrl ( ) } /${ Constants . Notification . ENDPOINT_PATH } ` )
94- . reply ( 200 , new Response ( notifications . map ( ( v ) => new Item ( v , 'VendorNotification ' ) ) ) ) ;
94+ . reply ( 200 , new Response ( notifications . map ( ( v ) => new Item ( v , 'Notification ' ) ) ) ) ;
9595
9696 const list = await NotificationService . list ( context ) ;
9797
@@ -103,10 +103,10 @@ describe('services/NotificationService', () => {
103103 expect ( entity . getProperty ( 'number' , null ) ) . toBe ( notification . number ) ;
104104 expect ( entity . getProperty ( 'name' , null ) ) . toBe ( notification . name ) ;
105105 expect ( entity . getProperty ( 'active' , null ) ) . toBe ( notification . active ) ;
106- expect ( entity . getProperty ( 'type ' , null ) ) . toBe ( notification . type ) ;
106+ expect ( entity . getProperty ( 'protocol ' , null ) ) . toBe ( notification . protocol ) ;
107107 expect ( entity . getProperty ( 'events' , null ) ) . toBe ( notification . events ) ;
108108 expect ( entity . getProperty ( 'payload' , null ) ) . toBe ( notification . payload ) ;
109- expect ( entity . getProperty ( 'url ' , null ) ) . toBe ( notification . url ) ;
109+ expect ( entity . getProperty ( 'endpoint ' , null ) ) . toBe ( notification . endpoint ) ;
110110 expect ( entity . getProperty ( 'custom_property' , null ) ) . toBe ( notification . custom_property ) ;
111111 } ) ;
112112 } ) ;
@@ -157,7 +157,7 @@ describe('services/NotificationService', () => {
157157 // configure mock for get request
158158 mock . onGet ( `${ context . getBaseUrl ( ) } /${ Constants . Notification . ENDPOINT_PATH } /${ notification . number } ` )
159159 . reply ( 200 , new Response (
160- new Item ( { ...notification } , 'VendorNotification ' ) ,
160+ new Item ( { ...notification } , 'Notification ' ) ,
161161 ) ) ;
162162
163163 notification = await NotificationService . get ( context , notification . number ) ;
@@ -168,7 +168,7 @@ describe('services/NotificationService', () => {
168168 // configure mock for update request
169169 mock . onPost ( `${ context . getBaseUrl ( ) } /${ Constants . Notification . ENDPOINT_PATH } /${ notification . number } ` )
170170 . reply ( 200 , new Response (
171- new Item ( { ...notification } , 'VendorNotification ' ) ,
171+ new Item ( { ...notification } , 'Notification ' ) ,
172172 ) ) ;
173173
174174 const updated = await NotificationService . update ( context , notification . getProperty ( 'number' ) , notification ) ;
0 commit comments