@@ -80,7 +80,7 @@ describe('ParseFile', () => {
8080
8181 it ( 'returns secure url when specified' , ( ) => {
8282 var file = new ParseFile ( 'parse.txt' , { base64 : 'ParseA==' } ) ;
83- file . save ( ) . then ( function ( result ) {
83+ return file . save ( ) . then ( function ( result ) {
8484 expect ( result ) . toBe ( file ) ;
8585 expect ( result . url ( { forceSecure : true } ) )
8686 . toBe ( 'https://files.parsetfss.com/a/parse.txt' ) ;
@@ -96,7 +96,7 @@ describe('ParseFile', () => {
9696 var file = new ParseFile ( 'parse.txt' , { base64 : 'ParseA==' } ) ;
9797 expect ( file . name ( ) ) . toBe ( 'parse.txt' ) ;
9898 expect ( file . url ( ) ) . toBe ( undefined ) ;
99- file . save ( ) . then ( function ( result ) {
99+ return file . save ( ) . then ( function ( result ) {
100100 expect ( result ) . toBe ( file ) ;
101101 expect ( result . name ( ) ) . toBe ( 'parse.txt' ) ;
102102 expect ( result . url ( ) ) . toBe ( 'http://files.parsetfss.com/a/parse.txt' ) ;
@@ -105,7 +105,7 @@ describe('ParseFile', () => {
105105
106106 it ( 'generates a JSON representation' , ( ) => {
107107 var file = new ParseFile ( 'parse.txt' , { base64 : 'ParseA==' } ) ;
108- file . save ( ) . then ( function ( result ) {
108+ return file . save ( ) . then ( function ( result ) {
109109 expect ( result . toJSON ( ) ) . toEqual ( {
110110 __type : 'File' ,
111111 name : 'parse.txt' ,
@@ -184,7 +184,7 @@ describe('FileController', () => {
184184
185185 it ( 'saves files created with bytes' , ( ) => {
186186 var file = new ParseFile ( 'parse.txt' , [ 61 , 170 , 236 , 120 ] ) ;
187- file . save ( ) . then ( function ( f ) {
187+ return file . save ( ) . then ( function ( f ) {
188188 expect ( f ) . toBe ( file ) ;
189189 expect ( f . name ( ) ) . toBe ( 'parse.txt' ) ;
190190 expect ( f . url ( ) ) . toBe ( 'https://files.parsetfss.com/a/parse.txt' ) ;
0 commit comments