File tree Expand file tree Collapse file tree 1 file changed +0
-7
lines changed Expand file tree Collapse file tree 1 file changed +0
-7
lines changed Original file line number Diff line number Diff line change 1
1
const chai = require ( 'chai' ) ;
2
2
const sinon = require ( 'sinon' ) ;
3
3
const sinonChai = require ( 'sinon-chai' ) ;
4
- const http = require ( 'http' ) ;
5
- const https = require ( 'https' ) ;
6
4
const fs = require ( 'fs' ) ;
7
5
8
6
chai . use ( sinonChai ) ;
@@ -11,8 +9,6 @@ const { expect } = chai;
11
9
describe ( 'Proxy Module TLS Certificate Loading' , ( ) => {
12
10
let sandbox ;
13
11
let mockConfig ;
14
- let httpCreateServerStub ;
15
- let httpsCreateServerStub ;
16
12
let mockHttpServer ;
17
13
let mockHttpsServer ;
18
14
let proxyModule ;
@@ -59,9 +55,6 @@ describe('Proxy Module TLS Certificate Loading', () => {
59
55
} ) ,
60
56
} ;
61
57
62
- httpCreateServerStub = sandbox . stub ( http , 'createServer' ) . returns ( mockHttpServer ) ;
63
- httpsCreateServerStub = sandbox . stub ( https , 'createServer' ) . returns ( mockHttpsServer ) ;
64
-
65
58
sandbox . stub ( require ( '../src/plugin' ) , 'PluginLoader' ) . returns ( mockPluginLoader ) ;
66
59
67
60
const configModule = require ( '../src/config' ) ;
You can’t perform that action at this time.
0 commit comments