Skip to content

Commit 13cd713

Browse files
committed
优化测试用例
1 parent 5402798 commit 13cd713

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

test/test.js

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,6 @@ var util = require('../demo/util');
66
var config = require('../demo/config');
77
var Writable = require('stream').Writable;
88

9-
if (process.env.AppId) {
10-
config = {
11-
SecretId: process.env.SecretId,
12-
SecretKey: process.env.SecretKey,
13-
Bucket: process.env.Bucket,
14-
Region: process.env.Region
15-
}
16-
}
179
var dataURItoUploadBody = function (dataURI) {
1810
return Buffer.from(dataURI.split(',')[1], 'base64');
1911
};
@@ -60,7 +52,7 @@ var cos = new COS({
6052
UploadCheckContentMd5: true, // 上传过程计算 Content-MD5
6153
});
6254

63-
var AppId = config.AppId;
55+
var AppId;
6456
var Bucket = config.Bucket;
6557
var BucketShortName = Bucket;
6658
var BucketLongName = Bucket + '-' + AppId;
@@ -2591,6 +2583,13 @@ group('BucketInventory', function () {
25912583
Region: config.Region,
25922584
Id: InventoryConfiguration.Id
25932585
}, function(err, data) {
2586+
console.log('-----------------------------');
2587+
console.log(JSON.stringify(config));
2588+
console.log('-----------------------------');
2589+
console.log(JSON.stringify(InventoryConfiguration));
2590+
console.log('-----------------------------');
2591+
console.log(JSON.stringify(data.InventoryConfiguration));
2592+
console.log('-----------------------------');
25942593
assert.ok(comparePlainObject(InventoryConfiguration, data.InventoryConfiguration));
25952594
done();
25962595
});

0 commit comments

Comments
 (0)