File tree 1 file changed +4
-0
lines changed
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', () => {
213
213
file . setTags ( tags ) ;
214
214
expect ( file . url ( ) ) . toBeUndefined ( ) ;
215
215
const result = await file . save ( ) ;
216
+ expect ( file . name ( ) ) . toBeDefined ( ) ;
217
+ expect ( file . url ( ) ) . toBeDefined ( ) ;
216
218
expect ( result . tags ( ) ) . toEqual ( tags ) ;
217
219
expect ( FilesController . prototype . createFile . calls . argsFor ( 0 ) [ 4 ] ) . toEqual ( {
218
220
tags : tags ,
@@ -224,7 +226,9 @@ describe('Parse.File testing', () => {
224
226
spyOn ( FilesController . prototype , 'createFile' ) . and . callThrough ( ) ;
225
227
const file = new Parse . File ( 'hello.txt' , data , 'text/plain' ) ;
226
228
expect ( file . url ( ) ) . toBeUndefined ( ) ;
229
+ expect ( file . name ( ) ) . toBeDefined ( ) ;
227
230
await file . save ( ) ;
231
+ expect ( file . url ( ) ) . toBeDefined ( ) ;
228
232
expect ( FilesController . prototype . createFile . calls . argsFor ( 0 ) [ 4 ] ) . toEqual ( {
229
233
metadata : { } ,
230
234
} ) ;
You can’t perform that action at this time.
0 commit comments