@@ -80,7 +80,7 @@ describe('ParseFile', () => {
80
80
81
81
it ( 'returns secure url when specified' , ( ) => {
82
82
var file = new ParseFile ( 'parse.txt' , { base64 : 'ParseA==' } ) ;
83
- file . save ( ) . then ( function ( result ) {
83
+ return file . save ( ) . then ( function ( result ) {
84
84
expect ( result ) . toBe ( file ) ;
85
85
expect ( result . url ( { forceSecure : true } ) )
86
86
. toBe ( 'https://files.parsetfss.com/a/parse.txt' ) ;
@@ -96,7 +96,7 @@ describe('ParseFile', () => {
96
96
var file = new ParseFile ( 'parse.txt' , { base64 : 'ParseA==' } ) ;
97
97
expect ( file . name ( ) ) . toBe ( 'parse.txt' ) ;
98
98
expect ( file . url ( ) ) . toBe ( undefined ) ;
99
- file . save ( ) . then ( function ( result ) {
99
+ return file . save ( ) . then ( function ( result ) {
100
100
expect ( result ) . toBe ( file ) ;
101
101
expect ( result . name ( ) ) . toBe ( 'parse.txt' ) ;
102
102
expect ( result . url ( ) ) . toBe ( 'http://files.parsetfss.com/a/parse.txt' ) ;
@@ -105,7 +105,7 @@ describe('ParseFile', () => {
105
105
106
106
it ( 'generates a JSON representation' , ( ) => {
107
107
var file = new ParseFile ( 'parse.txt' , { base64 : 'ParseA==' } ) ;
108
- file . save ( ) . then ( function ( result ) {
108
+ return file . save ( ) . then ( function ( result ) {
109
109
expect ( result . toJSON ( ) ) . toEqual ( {
110
110
__type : 'File' ,
111
111
name : 'parse.txt' ,
@@ -184,7 +184,7 @@ describe('FileController', () => {
184
184
185
185
it ( 'saves files created with bytes' , ( ) => {
186
186
var file = new ParseFile ( 'parse.txt' , [ 61 , 170 , 236 , 120 ] ) ;
187
- file . save ( ) . then ( function ( f ) {
187
+ return file . save ( ) . then ( function ( f ) {
188
188
expect ( f ) . toBe ( file ) ;
189
189
expect ( f . name ( ) ) . toBe ( 'parse.txt' ) ;
190
190
expect ( f . url ( ) ) . toBe ( 'https://files.parsetfss.com/a/parse.txt' ) ;
0 commit comments