Skip to content

Commit b96e3e6

Browse files
committed
test: modify ssl verification tests
1 parent fc09838 commit b96e3e6

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

test/unit/test.base_service.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -265,25 +265,25 @@ describe('BaseService', function() {
265265
assert(authHeader.startsWith('Basic'));
266266
});
267267

268-
it('should set rejectUnauthorized to `false` if `disable_ssl` is `true`', function() {
268+
it('should set rejectUnauthorized to `false` if `disable_ssl_verification` is `true`', function() {
269269
const instance = new TestService({
270270
username: 'apikey',
271271
password: 'icp-1234',
272-
disable_ssl: true,
272+
disable_ssl_verification: true,
273273
});
274274
assert.equal(instance._options.rejectUnauthorized, false);
275275
});
276276

277-
it('should set rejectUnauthorized to `true` if `disable_ssl` is `false`', function() {
277+
it('should set rejectUnauthorized to `true` if `disable_ssl_verification` is `false`', function() {
278278
const instance = new TestService({
279279
username: 'apikey',
280280
password: 'icp-1234',
281-
disable_ssl: false,
281+
disable_ssl_verification: false,
282282
});
283283
assert(instance._options.rejectUnauthorized);
284284
});
285285

286-
it('should set rejectUnauthorized to `true` if `disable_ssl` is not set', function() {
286+
it('should set rejectUnauthorized to `true` if `disable_ssl_verification` is not set', function() {
287287
const instance = new TestService({
288288
username: 'apikey',
289289
password: 'icp-1234',

0 commit comments

Comments
 (0)