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