@@ -28,18 +28,18 @@ describe('test start step2:', function() {
28
28
var putPolicy = new qiniu . rs . PutPolicy ( TEST_BUCKET ) ;
29
29
var uptoken = putPolicy . token ( ) ;
30
30
qiniu . io . putFile ( uptoken , logo2 , imageFile , null , function ( err , ret ) {
31
- err . should . eql ( { } ) ;
31
+ should . not . exist ( err ) ;
32
32
} ) ;
33
33
qiniu . io . putFile ( uptoken , logo , imageFile , null , function ( err , ret ) {
34
- err . should . eql ( { } ) ;
34
+ should . not . exist ( err ) ;
35
35
done ( ) ;
36
36
} ) ;
37
37
} ) ;
38
38
39
39
describe ( 'rs.Client#stat()' , function ( ) {
40
40
it ( 'get the stat of a file' , function ( done ) {
41
41
client . stat ( TEST_BUCKET , logo , function ( err , ret ) {
42
- err . should . eql ( { } ) ;
42
+ should . not . exist ( err ) ;
43
43
ret . should . have . keys ( 'hash' , 'fsize' , 'putTime' , 'mimeType' ) ;
44
44
done ( ) ;
45
45
} ) ;
@@ -49,7 +49,7 @@ describe('test start step2:', function() {
49
49
describe ( 'rs.Client#copy()' , function ( ) {
50
50
it ( 'copy logo.png to logo1.png' , function ( done ) {
51
51
client . copy ( TEST_BUCKET , logo , TEST_BUCKET , logo1 , function ( err , ret ) {
52
- err . should . eql ( { } ) ;
52
+ should . not . exist ( err ) ;
53
53
done ( ) ;
54
54
} ) ;
55
55
} ) ;
@@ -58,7 +58,7 @@ describe('test start step2:', function() {
58
58
describe ( 'rs.Client#remove()' , function ( ) {
59
59
it ( 'remove logo.png' , function ( done ) {
60
60
client . remove ( TEST_BUCKET , logo , function ( err , ret ) {
61
- err . should . eql ( { } ) ;
61
+ should . not . exist ( err ) ;
62
62
done ( ) ;
63
63
} ) ;
64
64
} ) ;
@@ -67,7 +67,7 @@ describe('test start step2:', function() {
67
67
describe ( 'rs.Client#move()' , function ( ) {
68
68
it ( 'move logo1.png to logo.png' , function ( done ) {
69
69
client . move ( TEST_BUCKET , logo1 , TEST_BUCKET , logo , function ( err , ret ) {
70
- err . should . eql ( { } ) ;
70
+ should . not . exist ( err ) ;
71
71
done ( ) ;
72
72
} ) ;
73
73
} ) ;
@@ -80,7 +80,7 @@ describe('test start step2:', function() {
80
80
var entries = [ new EntryPath ( TEST_BUCKET , logo ) , new EntryPath ( TEST_BUCKET , logo2 ) ] ;
81
81
82
82
client . batchDelete ( entries , function ( err , ret ) {
83
- err . should . eql ( { } ) ;
83
+ should . not . exist ( err ) ;
84
84
done ( ) ;
85
85
} ) ;
86
86
} ) ;
@@ -92,7 +92,7 @@ describe('test start step2:', function() {
92
92
new EntryPath ( TEST_BUCKET , logo2 ) ] ;
93
93
94
94
client . batchStat ( entries , function ( err , ret ) {
95
- err . should . eql ( { } ) ;
95
+ should . not . exist ( err ) ;
96
96
ret . length . should . equal ( 2 ) ;
97
97
for ( i in ret ) {
98
98
ret [ i ] . code . should . equal ( 200 ) ;
@@ -109,7 +109,7 @@ describe('test start step2:', function() {
109
109
new EntryPath ( TEST_BUCKET , 'not exist file' ) ] ;
110
110
111
111
client . batchStat ( entries , function ( err , ret ) {
112
- err . should . eql ( { } ) ; // 298
112
+ should . not . exist ( err ) ; // 298
113
113
ret . length . should . equal ( 2 ) ;
114
114
115
115
for ( i in ret ) {
@@ -132,7 +132,7 @@ describe('test start step2:', function() {
132
132
133
133
it ( 'copy from logo, logo2 to logo1, logo3' , function ( done ) {
134
134
client . batchCopy ( entries , function ( err , ret ) {
135
- err . should . eql ( { } ) ;
135
+ should . not . exist ( err ) ;
136
136
console . log ( ret ) ;
137
137
done ( ) ;
138
138
} ) ;
@@ -144,7 +144,7 @@ describe('test start step2:', function() {
144
144
145
145
it ( 'delete logo.png, logo2.png' , function ( done ) {
146
146
client . batchDelete ( entries , function ( err , ret ) {
147
- err . should . eql ( { } ) ;
147
+ should . not . exist ( err ) ;
148
148
done ( ) ;
149
149
} ) ;
150
150
} ) ;
@@ -157,7 +157,7 @@ describe('test start step2:', function() {
157
157
158
158
it ( 'move from logo1.png, logo3.png to logo.png, logo2.png' , function ( done ) {
159
159
client . batchMove ( entries , function ( err , ret ) {
160
- err . should . eql ( { } ) ;
160
+ should . not . exist ( err ) ;
161
161
done ( ) ;
162
162
} ) ;
163
163
} ) ;
0 commit comments