@@ -29,7 +29,7 @@ describe('services/NotificationService', () => {
29
29
// configure mock for create request
30
30
mock . onPost ( `${ context . getBaseUrl ( ) } /${ Constants . Notification . ENDPOINT_PATH } ` )
31
31
. reply ( 200 , new Response (
32
- new Item ( { ...notification } , 'VendorNotification ' ) ,
32
+ new Item ( { ...notification } , 'Notification ' ) ,
33
33
) ) ;
34
34
35
35
const entity = await NotificationService . create ( context , notification ) ;
@@ -38,10 +38,10 @@ describe('services/NotificationService', () => {
38
38
expect ( entity . getProperty ( 'number' , null ) ) . toBe ( notification . number ) ;
39
39
expect ( entity . getProperty ( 'name' , null ) ) . toBe ( notification . name ) ;
40
40
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 ) ;
42
42
expect ( entity . getProperty ( 'events' , null ) ) . toBe ( notification . events ) ;
43
43
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 ) ;
45
45
expect ( entity . getProperty ( 'custom_property' , null ) ) . toBe ( notification . custom_property ) ;
46
46
} ) ;
47
47
@@ -52,7 +52,7 @@ describe('services/NotificationService', () => {
52
52
// configure mock for get request
53
53
mock . onGet ( `${ context . getBaseUrl ( ) } /${ Constants . Notification . ENDPOINT_PATH } /${ notification . number } ` )
54
54
. reply ( 200 , new Response (
55
- new Item ( { ...notification } , 'VendorNotification ' ) ,
55
+ new Item ( { ...notification } , 'Notification ' ) ,
56
56
) ) ;
57
57
58
58
const entity = await NotificationService . get ( context , notification . number ) ;
@@ -61,10 +61,10 @@ describe('services/NotificationService', () => {
61
61
expect ( entity . getProperty ( 'number' , null ) ) . toBe ( notification . number ) ;
62
62
expect ( entity . getProperty ( 'name' , null ) ) . toBe ( notification . name ) ;
63
63
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 ) ;
65
65
expect ( entity . getProperty ( 'events' , null ) ) . toBe ( notification . events ) ;
66
66
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 ) ;
68
68
expect ( entity . getProperty ( 'custom_property' , null ) ) . toBe ( notification . custom_property ) ;
69
69
} ) ;
70
70
@@ -91,7 +91,7 @@ describe('services/NotificationService', () => {
91
91
92
92
// configure mock for list request
93
93
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 ' ) ) ) ) ;
95
95
96
96
const list = await NotificationService . list ( context ) ;
97
97
@@ -103,10 +103,10 @@ describe('services/NotificationService', () => {
103
103
expect ( entity . getProperty ( 'number' , null ) ) . toBe ( notification . number ) ;
104
104
expect ( entity . getProperty ( 'name' , null ) ) . toBe ( notification . name ) ;
105
105
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 ) ;
107
107
expect ( entity . getProperty ( 'events' , null ) ) . toBe ( notification . events ) ;
108
108
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 ) ;
110
110
expect ( entity . getProperty ( 'custom_property' , null ) ) . toBe ( notification . custom_property ) ;
111
111
} ) ;
112
112
} ) ;
@@ -157,7 +157,7 @@ describe('services/NotificationService', () => {
157
157
// configure mock for get request
158
158
mock . onGet ( `${ context . getBaseUrl ( ) } /${ Constants . Notification . ENDPOINT_PATH } /${ notification . number } ` )
159
159
. reply ( 200 , new Response (
160
- new Item ( { ...notification } , 'VendorNotification ' ) ,
160
+ new Item ( { ...notification } , 'Notification ' ) ,
161
161
) ) ;
162
162
163
163
notification = await NotificationService . get ( context , notification . number ) ;
@@ -168,7 +168,7 @@ describe('services/NotificationService', () => {
168
168
// configure mock for update request
169
169
mock . onPost ( `${ context . getBaseUrl ( ) } /${ Constants . Notification . ENDPOINT_PATH } /${ notification . number } ` )
170
170
. reply ( 200 , new Response (
171
- new Item ( { ...notification } , 'VendorNotification ' ) ,
171
+ new Item ( { ...notification } , 'Notification ' ) ,
172
172
) ) ;
173
173
174
174
const updated = await NotificationService . update ( context , notification . getProperty ( 'number' ) , notification ) ;
0 commit comments