Skip to content

Commit 6cea770

Browse files
committed
fix: 优化单测
1 parent 86a9c57 commit 6cea770

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4207,7 +4207,7 @@ group('upload Content-Type', function () {
42074207
// });
42084208
// });
42094209
// sliceUploadFile
4210-
test('sliceUploadFile string Content-Type null -> application/octet-stream', function (done, assert) {
4210+
test('sliceUploadFile string Content-Type null -> text/plain', function (done, assert) {
42114211
cos.sliceUploadFile(
42124212
{
42134213
Bucket: config.Bucket,
@@ -4223,7 +4223,7 @@ group('upload Content-Type', function () {
42234223
Key: '1.txt',
42244224
},
42254225
function (err, data) {
4226-
assert.ok(data.headers['content-type'] === 'application/octet-stream', 'Content-Type 正确');
4226+
assert.ok(data.headers['content-type'] === 'text/plain', 'Content-Type 正确');
42274227
done();
42284228
}
42294229
);

0 commit comments

Comments
 (0)