@@ -28,18 +28,18 @@ describe('test start step2:', function() {
2828 var putPolicy = new qiniu . rs . PutPolicy ( TEST_BUCKET ) ;
2929 var uptoken = putPolicy . token ( ) ;
3030 qiniu . io . putFile ( uptoken , logo2 , imageFile , null , function ( err , ret ) {
31- err . should . eql ( { } ) ;
31+ should . not . exist ( err ) ;
3232 } ) ;
3333 qiniu . io . putFile ( uptoken , logo , imageFile , null , function ( err , ret ) {
34- err . should . eql ( { } ) ;
34+ should . not . exist ( err ) ;
3535 done ( ) ;
3636 } ) ;
3737 } ) ;
3838
3939 describe ( 'rs.Client#stat()' , function ( ) {
4040 it ( 'get the stat of a file' , function ( done ) {
4141 client . stat ( TEST_BUCKET , logo , function ( err , ret ) {
42- err . should . eql ( { } ) ;
42+ should . not . exist ( err ) ;
4343 ret . should . have . keys ( 'hash' , 'fsize' , 'putTime' , 'mimeType' ) ;
4444 done ( ) ;
4545 } ) ;
@@ -49,7 +49,7 @@ describe('test start step2:', function() {
4949 describe ( 'rs.Client#copy()' , function ( ) {
5050 it ( 'copy logo.png to logo1.png' , function ( done ) {
5151 client . copy ( TEST_BUCKET , logo , TEST_BUCKET , logo1 , function ( err , ret ) {
52- err . should . eql ( { } ) ;
52+ should . not . exist ( err ) ;
5353 done ( ) ;
5454 } ) ;
5555 } ) ;
@@ -58,7 +58,7 @@ describe('test start step2:', function() {
5858 describe ( 'rs.Client#remove()' , function ( ) {
5959 it ( 'remove logo.png' , function ( done ) {
6060 client . remove ( TEST_BUCKET , logo , function ( err , ret ) {
61- err . should . eql ( { } ) ;
61+ should . not . exist ( err ) ;
6262 done ( ) ;
6363 } ) ;
6464 } ) ;
@@ -67,7 +67,7 @@ describe('test start step2:', function() {
6767 describe ( 'rs.Client#move()' , function ( ) {
6868 it ( 'move logo1.png to logo.png' , function ( done ) {
6969 client . move ( TEST_BUCKET , logo1 , TEST_BUCKET , logo , function ( err , ret ) {
70- err . should . eql ( { } ) ;
70+ should . not . exist ( err ) ;
7171 done ( ) ;
7272 } ) ;
7373 } ) ;
@@ -80,7 +80,7 @@ describe('test start step2:', function() {
8080 var entries = [ new EntryPath ( TEST_BUCKET , logo ) , new EntryPath ( TEST_BUCKET , logo2 ) ] ;
8181
8282 client . batchDelete ( entries , function ( err , ret ) {
83- err . should . eql ( { } ) ;
83+ should . not . exist ( err ) ;
8484 done ( ) ;
8585 } ) ;
8686 } ) ;
@@ -92,7 +92,7 @@ describe('test start step2:', function() {
9292 new EntryPath ( TEST_BUCKET , logo2 ) ] ;
9393
9494 client . batchStat ( entries , function ( err , ret ) {
95- err . should . eql ( { } ) ;
95+ should . not . exist ( err ) ;
9696 ret . length . should . equal ( 2 ) ;
9797 for ( i in ret ) {
9898 ret [ i ] . code . should . equal ( 200 ) ;
@@ -109,7 +109,7 @@ describe('test start step2:', function() {
109109 new EntryPath ( TEST_BUCKET , 'not exist file' ) ] ;
110110
111111 client . batchStat ( entries , function ( err , ret ) {
112- err . should . eql ( { } ) ; // 298
112+ should . not . exist ( err ) ; // 298
113113 ret . length . should . equal ( 2 ) ;
114114
115115 for ( i in ret ) {
@@ -132,7 +132,7 @@ describe('test start step2:', function() {
132132
133133 it ( 'copy from logo, logo2 to logo1, logo3' , function ( done ) {
134134 client . batchCopy ( entries , function ( err , ret ) {
135- err . should . eql ( { } ) ;
135+ should . not . exist ( err ) ;
136136 console . log ( ret ) ;
137137 done ( ) ;
138138 } ) ;
@@ -144,7 +144,7 @@ describe('test start step2:', function() {
144144
145145 it ( 'delete logo.png, logo2.png' , function ( done ) {
146146 client . batchDelete ( entries , function ( err , ret ) {
147- err . should . eql ( { } ) ;
147+ should . not . exist ( err ) ;
148148 done ( ) ;
149149 } ) ;
150150 } ) ;
@@ -157,7 +157,7 @@ describe('test start step2:', function() {
157157
158158 it ( 'move from logo1.png, logo3.png to logo.png, logo2.png' , function ( done ) {
159159 client . batchMove ( entries , function ( err , ret ) {
160- err . should . eql ( { } ) ;
160+ should . not . exist ( err ) ;
161161 done ( ) ;
162162 } ) ;
163163 } ) ;
0 commit comments