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

Commit 29ccc47

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

File tree

1 file changed

+19
-4
lines changed

1 file changed

+19
-4
lines changed

test/downloadoptions.js

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

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

7693
it('should look as we expect', function() {
7794
var expected = {
78-
rejectUnauthorized: true,
95+
strictSSL: true,
7996
timeout: 60000,
8097
headers: {
8198
'User-Agent': ua(),
8299
},
83-
encoding: null,
84100
};
85101

86102
assert.deepStrictEqual(opts(), expected);
@@ -94,12 +110,11 @@ describe('util', function() {
94110

95111
it('should look as we expect', function() {
96112
var expected = {
97-
rejectUnauthorized: true,
113+
strictSSL: true,
98114
timeout: 60000,
99115
headers: {
100116
'User-Agent': ua(),
101117
},
102-
encoding: null,
103118
};
104119

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

0 commit comments

Comments
 (0)