@@ -88,7 +88,7 @@ describe('test start step2:', function() {
8888 describe ( 'rs.Client#batchStat()' , function ( ) {
8989 it ( 'get the stat of logo.png and logo2.png' , function ( done ) {
9090 var entries = [
91- new EntryPath ( TEST_BUCKET , logo ) ,
91+ new EntryPath ( TEST_BUCKET , logo ) ,
9292 new EntryPath ( TEST_BUCKET , logo2 ) ] ;
9393
9494 client . batchStat ( entries , function ( err , ret ) {
@@ -105,7 +105,7 @@ describe('test start step2:', function() {
105105 it ( 'should return code 298 when partial ok' , function ( done ) {
106106
107107 var entries = [
108- new EntryPath ( TEST_BUCKET , logo ) ,
108+ new EntryPath ( TEST_BUCKET , logo ) ,
109109 new EntryPath ( TEST_BUCKET , 'not exist file' ) ] ;
110110
111111 client . batchStat ( entries , function ( err , ret ) {
@@ -167,23 +167,14 @@ describe('test start step2:', function() {
167167 describe ( 'rs.isQiniuCallBack' , function ( ) {
168168
169169 it ( 'test isQiniuCallback true' , function ( done ) {
170- // @gist isQiniuCallback
171- // ------ auth应该是来自请求的header的'Authrization'字段,path是请求的路径,content是请求的内容
172- var auth = 'QBox nnwjTeUgpQdfZp9cb4-iHK0EUlebKCNk4kXwoStq:kyFuG6yYh6FlX1fZO0alTgJK2Jw=' ;
170+ var auth = 'QBox QWYn5TFQsLLU1pL5MFEmX3s5DmHdUThav9WyOWOm:4GcOC2_eiw97QBNsHiwLzSqxelI=' ;
173171 var path = '/callback' ;
174172 var content = 'key=43850.6579994258936495&hash=FllOJrhvzorEKnyMwE-o7pfciiha' ;
175- // ------
176-
177173 var ok = qiniu . util . isQiniuCallback ( path , content , auth ) ;
178174 ok . should . be . ok ;
179- // @endgist
180175 done ( ) ;
181176 } ) ;
182-
183-
184177 } ) ;
185178
186- // rs.GetPolicy#makeRequest()
187-
188179 } ) ;
189180} ) ;
0 commit comments