File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -192,6 +192,18 @@ export function installation(marketplace: Marketplace) {
192
192
done ( )
193
193
} ) . catch ( done )
194
194
} )
195
+
196
+ test ( 'should Reinstall App' , done => {
197
+ marketplace . app ( appUid ) . reinstall ( { targetType : 'stack' , targetUid : process . env . APIKEY as string } )
198
+ . then ( ( reinstallation ) => {
199
+ installationUid = reinstallation . installation_uid
200
+ expect ( reinstallation . installation_uid ) . to . not . equal ( undefined )
201
+ expect ( reinstallation . fetch ) . to . not . equal ( undefined )
202
+ expect ( reinstallation . update ) . to . not . equal ( undefined )
203
+ expect ( reinstallation . uninstall ) . to . not . equal ( undefined )
204
+ done ( )
205
+ } ) . catch ( done )
206
+ } )
195
207
196
208
test ( 'should Uninstall App installation' , done => {
197
209
marketplace . installation ( installationUid ) . uninstall ( )
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ export interface App extends SystemFields, SystemFunction<App> {
20
20
redirectUri : string ,
21
21
scope : string ,
22
22
state : string } ) : Promise < AnyProperty >
23
+ reinstall ( data : { targetUid : string , targetType : AppTarget } ) : Promise < Installation >
23
24
authorization ( ) : Authorization
24
25
listInstallations ( ) : Promise < ContentstackCollection < App > >
25
26
}
You can’t perform that action at this time.
0 commit comments