File tree Expand file tree Collapse file tree 1 file changed +11
-11
lines changed
Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -16,10 +16,10 @@ describe("files", function() {
1616 file . destroy ( ) . then ( function ( ) {
1717 done ( ) ;
1818 } , function ( error ) {
19- throw error ;
19+ done ( error ) ;
2020 } ) ;
2121 } , function ( error ) {
22- throw error ;
22+ done ( error ) ;
2323 } ) ;
2424 } ) ;
2525 } ) ;
@@ -37,7 +37,7 @@ describe("files", function() {
3737 expect ( file . metaData ( '__source' ) ) . to . be ( 'external' ) ;
3838 done ( ) ;
3939 } , function ( error ) {
40- throw error ;
40+ done ( error ) ;
4141 } ) ;
4242 } ) ;
4343 } ) ;
@@ -59,10 +59,10 @@ describe("files", function() {
5959 file . destroy ( ) . then ( function ( ) {
6060 done ( ) ;
6161 } , function ( error ) {
62- throw error ;
62+ done ( error ) ;
6363 } ) ;
6464 } , function ( error ) {
65- throw error ;
65+ done ( error ) ;
6666 } ) ;
6767 } else {
6868 done ( ) ;
@@ -83,10 +83,10 @@ describe("files", function() {
8383 file . destroy ( ) . then ( function ( ) {
8484 done ( ) ;
8585 } , function ( error ) {
86- throw error ;
86+ done ( error ) ;
8787 } ) ;
8888 } , function ( error ) {
89- throw error ;
89+ done ( error ) ;
9090 } ) ;
9191 } ) ;
9292 } ) ;
@@ -115,19 +115,19 @@ describe("files", function() {
115115 file . destroy ( ) . then ( function ( ) {
116116 done ( ) ;
117117 } , function ( error ) {
118- throw error ;
118+ done ( error ) ;
119119 } ) ;
120120 } ,
121121 error : function ( object , error ) {
122- throw error ;
122+ done ( error ) ;
123123 }
124124 } ) ;
125125
126126 } , function ( obj , error ) {
127- throw error ;
127+ done ( error ) ;
128128 } ) ;
129129 } , function ( error ) {
130- throw error ;
130+ done ( error ) ;
131131 } ) ;
132132 } ) ;
133133 } ) ;
You can’t perform that action at this time.
0 commit comments