File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -213,6 +213,8 @@ describe('Parse.File testing', () => {
213213 file . setTags ( tags ) ;
214214 expect ( file . url ( ) ) . toBeUndefined ( ) ;
215215 const result = await file . save ( ) ;
216+ expect ( file . name ( ) ) . toBeDefined ( ) ;
217+ expect ( file . url ( ) ) . toBeDefined ( ) ;
216218 expect ( result . tags ( ) ) . toEqual ( tags ) ;
217219 expect ( FilesController . prototype . createFile . calls . argsFor ( 0 ) [ 4 ] ) . toEqual ( {
218220 tags : tags ,
@@ -224,7 +226,9 @@ describe('Parse.File testing', () => {
224226 spyOn ( FilesController . prototype , 'createFile' ) . and . callThrough ( ) ;
225227 const file = new Parse . File ( 'hello.txt' , data , 'text/plain' ) ;
226228 expect ( file . url ( ) ) . toBeUndefined ( ) ;
229+ expect ( file . name ( ) ) . toBeDefined ( ) ;
227230 await file . save ( ) ;
231+ expect ( file . url ( ) ) . toBeDefined ( ) ;
228232 expect ( FilesController . prototype . createFile . calls . argsFor ( 0 ) [ 4 ] ) . toEqual ( {
229233 metadata : { } ,
230234 } ) ;
You can’t perform that action at this time.
0 commit comments