Skip to content

Commit 9967490

Browse files
committed
upd: 补充单测
1 parent 02a1811 commit 9967490

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

test/test.js

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -341,18 +341,18 @@ group('init cos', function() {
341341
Credentials.secretKey = 'abcdefg';
342342
}, 1000);
343343
putFile(initCos, done, assert, true);
344-
});
345-
test('getAuthorization error tmpSecretId', function(done, assert) {
346-
var initCos = new COS({
347-
getAuthorization: function (options, callback) {
348-
callback({
349-
tmpSecretId: config.SecretId,
350-
TmpSecretKey: config.SecretKey,
344+
});
345+
test('getAuthorization error tmpSecretId', function(done, assert) {
346+
var initCos = new COS({
347+
getAuthorization: function (options, callback) {
348+
callback({
349+
tmpSecretId: config.SecretId,
350+
TmpSecretKey: config.SecretKey,
351+
});
352+
}
351353
});
352-
}
354+
putFile(initCos, done, assert, false);
353355
});
354-
putFile(initCos, done, assert, false);
355-
});
356356
test('getAuthorization error tmpSecretKey', function(done, assert) {
357357
var initCos = new COS({
358358
getAuthorization: function (options, callback) {
@@ -3675,6 +3675,7 @@ group('BucketInventory', function () {
36753675
done();
36763676
});
36773677
});
3678+
36783679
});
36793680

36803681
group('Content-Type: false Bug', function () {

0 commit comments

Comments
 (0)