@@ -28,7 +28,6 @@ describe('Apps api Test', () => {
2828 it ( 'Fetch all apps test' , done => {
2929 client . organization ( orgID ) . app ( ) . findAll ( )
3030 . then ( ( apps ) => {
31- console . log ( apps ) ;
3231 for ( const index in apps . items ) {
3332 const appObject = apps . items [ index ]
3433 expect ( appObject . name ) . to . not . equal ( null )
@@ -119,7 +118,7 @@ describe('Apps api Test', () => {
119118 } )
120119
121120 it ( 'Install app test' , done => {
122- client . organization ( orgID ) . app ( appUid ) . install ( { targetType : 'stack ' , targetUid : process . env . APIKEY } )
121+ client . organization ( orgID ) . app ( appUid ) . install ( { targetType : 'organization ' , targetUid : process . env . ORGANIZATION } )
123122 . then ( ( installation ) => {
124123 installationUid = installation . uid
125124 jsonWrite ( installation , 'installation.json' )
@@ -164,7 +163,7 @@ describe('Apps api Test', () => {
164163 } ) . catch ( done )
165164 } )
166165 it ( 'Set server config for installation test' , done => {
167- client . organization ( orgID ) . app ( appUid ) . installation ( installationUid ) . serServerConfig ( { } )
166+ client . organization ( orgID ) . app ( appUid ) . installation ( installationUid ) . setServerConfig ( { } )
168167 . then ( ( config ) => {
169168 expect ( config . data ) . to . deep . equal ( { } )
170169 done ( )
@@ -177,8 +176,8 @@ describe('Apps api Test', () => {
177176 expect ( installation . uid ) . to . be . equal ( installationUid )
178177 expect ( installation . params . organization_uid ) . to . be . equal ( orgID )
179178 expect ( installation . urlPath ) . to . be . equal ( `/installations/${ installation . uid } ` )
180- expect ( installation . target . type ) . to . be . equal ( 'stack ' )
181- expect ( installation . target . uid ) . to . be . equal ( stack . api_key )
179+ expect ( installation . target . type ) . to . be . equal ( 'organization ' )
180+ expect ( installation . target . uid ) . to . be . equal ( orgID )
182181 expect ( installation . status ) . to . be . equal ( 'installed' )
183182 done ( )
184183 } ) . catch ( done )
0 commit comments