File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -161,19 +161,19 @@ describe("Extension", () => {
161161 expect ( extensionObj . getAppVersion ) . toBeDefined ( ) ;
162162 } ) ;
163163
164- it ( "should return a app version" , async ( ) => {
164+ it ( "should return an app version when invoked " , async ( ) => {
165165 const extensionObj = new Extension ( initData ) ;
166166 const version = await extensionObj . getAppVersion ( ) ;
167167 expect ( version ) . toBe ( 5 ) ;
168168 } ) ;
169169
170- it ( "should return null for data without installation uid & manifest, this case is for jsonRte " , async ( ) => {
170+ it ( "should return null when installation uid is not present " , async ( ) => {
171171 const extensionObj = new Extension ( initDataJsonRte as any ) ;
172172 const version = await extensionObj . getAppVersion ( ) ;
173173 expect ( version ) . toBe ( null ) ;
174174 } ) ;
175175
176- it ( "should execute the function without errors which calls postRobo init, this case is for customField where we dont get the manifest " , async ( ) => {
176+ it ( "should fetch the app version for parent using post robot " , async ( ) => {
177177 const extensionObj = new Extension ( initDataWithoutManifest ) ;
178178 const version = await extensionObj . getAppVersion ( ) ;
179179 expect ( version ) . toBe ( 90 ) ;
Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ export declare interface User {
3434 first_name : string ;
3535 last_name : string ;
3636}
37+
3738export declare interface Manifest {
3839 created_by : User ;
3940 icon : string ;
You can’t perform that action at this time.
0 commit comments