@@ -37,10 +37,10 @@ describe('Sites Controller', () => {
37
37
38
38
const sites = [
39
39
{
40
- siteId : SITE_IDS [ 0 ] , baseURL : 'https://site1.com' , deliveryType : 'aem_edge' , config : Config ( { } ) ,
40
+ siteId : SITE_IDS [ 0 ] , baseURL : 'https://site1.com' , deliveryType : 'aem_edge' , config : Config ( { } ) , hlxConfig : { } ,
41
41
} ,
42
42
{
43
- siteId : SITE_IDS [ 1 ] , baseURL : 'https://site2.com' , deliveryType : 'aem_edge' , config : Config ( { } ) ,
43
+ siteId : SITE_IDS [ 1 ] , baseURL : 'https://site2.com' , deliveryType : 'aem_edge' , config : Config ( { } ) , hlxConfig : { } ,
44
44
} ,
45
45
] . map ( ( site ) => new Site (
46
46
{
@@ -55,6 +55,7 @@ describe('Sites Controller', () => {
55
55
gitHubURL : { type : 'string' , name : 'gitHubURL' , get : ( value ) => value } ,
56
56
isLive : { type : 'boolean' , name : 'isLive' , get : ( value ) => value } ,
57
57
organizationId : { type : 'string' , name : 'organizationId' , get : ( value ) => value } ,
58
+ hlxConfig : { type : 'any' , name : 'hlxConfig' , get : ( value ) => value } ,
58
59
} ,
59
60
} ,
60
61
} ,
@@ -222,6 +223,9 @@ describe('Sites Controller', () => {
222
223
deliveryType : 'other' ,
223
224
gitHubURL : 'https://github.com/blah/bluh' ,
224
225
config : { } ,
226
+ hlxConfig : {
227
+ field : true ,
228
+ } ,
225
229
} ,
226
230
} ) ;
227
231
@@ -233,6 +237,7 @@ describe('Sites Controller', () => {
233
237
expect ( updatedSite ) . to . have . property ( 'baseURL' , 'https://site1.com' ) ;
234
238
expect ( updatedSite ) . to . have . property ( 'deliveryType' , 'other' ) ;
235
239
expect ( updatedSite ) . to . have . property ( 'gitHubURL' , 'https://github.com/blah/bluh' ) ;
240
+ expect ( updatedSite . hlxConfig ) . to . deep . equal ( { field : true } ) ;
236
241
} ) ;
237
242
238
243
it ( 'returns bad request when updating a site if id not provided' , async ( ) => {
0 commit comments