This repository was archived by the owner on Jul 24, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +20
-4
lines changed Expand file tree Collapse file tree 1 file changed +20
-4
lines changed Original file line number Diff line number Diff line change @@ -68,19 +68,36 @@ describe('util', function() {
68
68
} ) ;
69
69
} ) ;
70
70
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
+
71
89
describe ( 'with SASS_REJECT_UNAUTHORIZED set to true' , function ( ) {
72
90
beforeEach ( function ( ) {
73
91
process . env . SASS_REJECT_UNAUTHORIZED = '1' ;
74
92
} ) ;
75
93
76
94
it ( 'should look as we expect' , function ( ) {
77
95
var expected = {
78
- rejectUnauthorized : true ,
96
+ strictSSL : true ,
79
97
timeout : 60000 ,
80
98
headers : {
81
99
'User-Agent' : ua ( ) ,
82
100
} ,
83
- encoding : null ,
84
101
} ;
85
102
86
103
assert . deepStrictEqual ( opts ( ) , expected ) ;
@@ -94,12 +111,11 @@ describe('util', function() {
94
111
95
112
it ( 'should look as we expect' , function ( ) {
96
113
var expected = {
97
- rejectUnauthorized : true ,
114
+ strictSSL : true ,
98
115
timeout : 60000 ,
99
116
headers : {
100
117
'User-Agent' : ua ( ) ,
101
118
} ,
102
- encoding : null ,
103
119
} ;
104
120
105
121
assert . deepStrictEqual ( opts ( ) , expected ) ;
You can’t perform that action at this time.
0 commit comments