4
4
import * as fs from 'fs' ;
5
5
import * as path from 'path' ;
6
6
import * as chai from 'chai' ;
7
- import { BinaryEntry , Config , useStrictSSL } from './install' ;
7
+ import { BinaryEntry , Config } from './install' ;
8
8
9
9
const expect = chai . expect ;
10
10
@@ -19,27 +19,6 @@ describe('Install', () => {
19
19
}
20
20
} ) ;
21
21
22
- describe ( '#useStrictSSL' , ( ) => {
23
- afterEach ( ( ) => {
24
- delete process . env [ 'npm_config_strict-ssl' ]
25
- } )
26
- describe ( 'when "strict-ssl" is specified in an NPM configuration' , ( ) => {
27
- it ( 'returns a true' , ( ) => {
28
- process . env [ 'npm_config_strict-ssl' ] = "true"
29
- expect ( useStrictSSL ( ) ) . to . be . true
30
- } )
31
- it ( 'returns a false' , ( ) => {
32
- process . env [ 'npm_config_strict-ssl' ] = "false"
33
- expect ( useStrictSSL ( ) ) . to . be . false
34
- } )
35
- } )
36
- describe ( 'when "strict-ssl" is not specified in any NPM configuration' , ( ) => {
37
- it ( 'returns true' , ( ) => {
38
- expect ( useStrictSSL ( ) ) . to . be . true
39
- } )
40
- } )
41
- } )
42
-
43
22
function createConfig ( ) : Config {
44
23
return require ( './install' ) . createConfig ( ) ;
45
24
}
0 commit comments