We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9c261b8 commit 3466170Copy full SHA for 3466170
test/conf.test.js
@@ -7,7 +7,8 @@ const fs = require('fs');
7
8
describe('test Config class', function () {
9
const {
10
- Config
+ Config,
11
+ UC_HOST
12
} = qiniu.conf;
13
14
Endpoint,
@@ -49,8 +50,8 @@ describe('test Config class', function () {
49
50
return config.getUcEndpointsProvider()
51
.getEndpoints()
52
.then(endpoints => {
- should.equal(endpoints.length, 1);
53
- should.equal(endpoints[0].getValue(), `${scheme}://uc.qbox.me`);
+ endpoints.length.should.greaterThanOrEqual(1);
54
+ should.equal(endpoints[0].getValue(), `${scheme}://${UC_HOST}`);
55
});
56
}));
57
0 commit comments