Skip to content
This repository was archived by the owner on Jul 24, 2024. It is now read-only.

Commit c603ac5

Browse files
author
Camille Drapier
committed
Restore and fix tests
1 parent 89647dd commit c603ac5

File tree

1 file changed

+20
-4
lines changed

1 file changed

+20
-4
lines changed

test/downloadoptions.js

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,19 +68,36 @@ describe('util', function() {
6868
});
6969
});
7070

71+
describe('with SASS_REJECT_UNAUTHORIZED set to false', function() {
72+
73+
beforeEach(function() {
74+
process.env.SASS_REJECT_UNAUTHORIZED = '0';
75+
});
76+
77+
it('should look as we expect', function() {
78+
var expected = {
79+
strictSSL: false,
80+
timeout: 60000,
81+
headers: {
82+
'User-Agent': ua(),
83+
},
84+
};
85+
assert.deepStrictEqual(opts(), expected);
86+
});
87+
});
88+
7189
describe('with SASS_REJECT_UNAUTHORIZED set to true', function() {
7290
beforeEach(function() {
7391
process.env.SASS_REJECT_UNAUTHORIZED = '1';
7492
});
7593

7694
it('should look as we expect', function() {
7795
var expected = {
78-
rejectUnauthorized: true,
96+
strictSSL: true,
7997
timeout: 60000,
8098
headers: {
8199
'User-Agent': ua(),
82100
},
83-
encoding: null,
84101
};
85102

86103
assert.deepStrictEqual(opts(), expected);
@@ -94,12 +111,11 @@ describe('util', function() {
94111

95112
it('should look as we expect', function() {
96113
var expected = {
97-
rejectUnauthorized: true,
114+
strictSSL: true,
98115
timeout: 60000,
99116
headers: {
100117
'User-Agent': ua(),
101118
},
102-
encoding: null,
103119
};
104120

105121
assert.deepStrictEqual(opts(), expected);

0 commit comments

Comments
 (0)