@@ -28,7 +28,6 @@ describe('Apps api Test', () => {
28
28
it ( 'Fetch all apps test' , done => {
29
29
client . organization ( orgID ) . app ( ) . findAll ( )
30
30
. then ( ( apps ) => {
31
- console . log ( apps ) ;
32
31
for ( const index in apps . items ) {
33
32
const appObject = apps . items [ index ]
34
33
expect ( appObject . name ) . to . not . equal ( null )
@@ -119,7 +118,7 @@ describe('Apps api Test', () => {
119
118
} )
120
119
121
120
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 } )
123
122
. then ( ( installation ) => {
124
123
installationUid = installation . uid
125
124
jsonWrite ( installation , 'installation.json' )
@@ -164,7 +163,7 @@ describe('Apps api Test', () => {
164
163
} ) . catch ( done )
165
164
} )
166
165
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 ( { } )
168
167
. then ( ( config ) => {
169
168
expect ( config . data ) . to . deep . equal ( { } )
170
169
done ( )
@@ -177,8 +176,8 @@ describe('Apps api Test', () => {
177
176
expect ( installation . uid ) . to . be . equal ( installationUid )
178
177
expect ( installation . params . organization_uid ) . to . be . equal ( orgID )
179
178
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 )
182
181
expect ( installation . status ) . to . be . equal ( 'installed' )
183
182
done ( )
184
183
} ) . catch ( done )
0 commit comments