@@ -86,6 +86,7 @@ describe('Backendless.Files', function() {
8686 return createFile ( path )
8787 . then ( ( ) => expect ( Files . exists ( path ) ) . to . eventually . be . true )
8888 . then ( ( ) => Files . remove ( path ) )
89+ . then ( ( ) => Files . listing ( '/' ) )
8990 . then ( ( ) => expect ( Files . exists ( path ) ) . to . eventually . be . false )
9091 } )
9192
@@ -95,13 +96,15 @@ describe('Backendless.Files', function() {
9596 return createDir ( '/' , 'emptyDir' )
9697 . then ( ( ) => expect ( Files . exists ( path ) ) . to . eventually . be . true )
9798 . then ( ( ) => Files . remove ( path ) )
99+ . then ( ( ) => Files . listing ( '/' ) )
98100 . then ( ( ) => expect ( Files . exists ( path ) ) . to . eventually . be . false )
99101 } )
100102
101103 it ( 'existing non-empty directory' , function ( ) {
102104 return this . consoleApi . files . createFile ( this . app . id , 'dir/file' , '' )
103105 . then ( ( ) => expect ( Files . exists ( 'dir' ) ) . to . eventually . be . true )
104106 . then ( ( ) => Files . remove ( 'dir' ) )
107+ . then ( ( ) => Files . listing ( '/' ) )
105108 . then ( ( ) => expect ( Files . exists ( 'dir' ) ) . to . eventually . be . false )
106109 } )
107110
@@ -119,6 +122,7 @@ describe('Backendless.Files', function() {
119122
120123 return createFile ( beforeRename )
121124 . then ( ( ) => expect ( Files . renameFile ( beforeRename , 'file-after' ) ) . to . eventually . have . string ( afterRename ) )
125+ . then ( ( ) => Files . listing ( '/' ) )
122126 . then ( ( ) => expect ( Files . exists ( beforeRename ) ) . to . eventually . be . false )
123127 . then ( ( ) => expect ( Files . exists ( afterRename ) ) . to . eventually . be . true )
124128 } )
@@ -129,6 +133,7 @@ describe('Backendless.Files', function() {
129133
130134 return createDir ( '' , beforeRename )
131135 . then ( ( ) => expect ( Files . renameFile ( beforeRename , 'dir-after' ) ) . to . eventually . have . string ( afterRename ) )
136+ . then ( ( ) => Files . listing ( '/' ) )
132137 . then ( ( ) => expect ( Files . exists ( beforeRename ) ) . to . eventually . be . false )
133138 . then ( ( ) => expect ( Files . exists ( afterRename ) ) . to . eventually . be . true )
134139 } )
@@ -139,6 +144,7 @@ describe('Backendless.Files', function() {
139144
140145 return createFile ( beforeRename + '/file' )
141146 . then ( ( ) => expect ( Files . renameFile ( beforeRename , 'dir-after' ) ) . to . eventually . have . string ( afterRename ) )
147+ . then ( ( ) => Files . listing ( '/' ) )
142148 . then ( ( ) => expect ( Files . exists ( beforeRename ) ) . to . eventually . be . false )
143149 . then ( ( ) => expect ( Files . exists ( afterRename ) ) . to . eventually . be . true )
144150 } )
@@ -159,6 +165,7 @@ describe('Backendless.Files', function() {
159165
160166 return createFile ( beforeMove )
161167 . then ( ( ) => expect ( Files . moveFile ( beforeMove , afterMove ) ) . to . eventually . have . string ( afterMove ) )
168+ . then ( ( ) => Files . listing ( '/' ) )
162169 . then ( ( ) => expect ( Files . exists ( beforeMove ) ) . to . eventually . be . false )
163170 . then ( ( ) => expect ( Files . exists ( afterMove ) ) . to . eventually . be . true )
164171 } )
@@ -169,6 +176,7 @@ describe('Backendless.Files', function() {
169176
170177 return createDir ( '' , beforeMove )
171178 . then ( ( ) => expect ( Files . moveFile ( beforeMove , afterMove ) ) . to . eventually . have . string ( afterMove ) )
179+ . then ( ( ) => Files . listing ( '/' ) )
172180 . then ( ( ) => expect ( Files . exists ( beforeMove ) ) . to . eventually . be . false )
173181 . then ( ( ) => expect ( Files . exists ( afterMove ) ) . to . eventually . be . true )
174182 } )
@@ -179,6 +187,7 @@ describe('Backendless.Files', function() {
179187
180188 return createFile ( beforeMove + '/file' )
181189 . then ( ( ) => expect ( Files . moveFile ( beforeMove , afterMove ) ) . to . eventually . have . string ( afterMove ) )
190+ . then ( ( ) => Files . listing ( '/' ) )
182191 . then ( ( ) => expect ( Files . exists ( beforeMove ) ) . to . eventually . be . false )
183192 . then ( ( ) => expect ( Files . exists ( afterMove ) ) . to . eventually . be . true )
184193 } )
@@ -199,6 +208,7 @@ describe('Backendless.Files', function() {
199208
200209 return createFile ( beforeCopy )
201210 . then ( ( ) => expect ( Files . copyFile ( beforeCopy , afterCopy ) ) . to . eventually . have . string ( afterCopy ) )
211+ . then ( ( ) => Files . listing ( '/' ) )
202212 . then ( ( ) => expect ( Files . exists ( beforeCopy ) ) . to . eventually . be . true )
203213 . then ( ( ) => expect ( Files . exists ( afterCopy ) ) . to . eventually . be . true )
204214 } )
@@ -209,6 +219,7 @@ describe('Backendless.Files', function() {
209219
210220 return createDir ( '' , beforeCopy )
211221 . then ( ( ) => expect ( Files . copyFile ( beforeCopy , afterCopy ) ) . to . eventually . have . string ( afterCopy ) )
222+ . then ( ( ) => Files . listing ( '/' ) )
212223 . then ( ( ) => expect ( Files . exists ( beforeCopy ) ) . to . eventually . be . true )
213224 . then ( ( ) => expect ( Files . exists ( afterCopy ) ) . to . eventually . be . true )
214225 } )
@@ -219,6 +230,7 @@ describe('Backendless.Files', function() {
219230
220231 return createFile ( beforeCopy + '/file' )
221232 . then ( ( ) => expect ( Files . copyFile ( beforeCopy , afterCopy ) ) . to . eventually . have . string ( afterCopy ) )
233+ . then ( ( ) => Files . listing ( '/' ) )
222234 . then ( ( ) => expect ( Files . exists ( beforeCopy ) ) . to . eventually . be . true )
223235 . then ( ( ) => expect ( Files . exists ( afterCopy ) ) . to . eventually . be . true )
224236 } )
0 commit comments