File tree 1 file changed +17
-15
lines changed
1 file changed +17
-15
lines changed Original file line number Diff line number Diff line change @@ -7,20 +7,20 @@ const helper = require('./helper');
7
7
const config = require ( './fixtures/client-config/webpack.config' ) ;
8
8
const runBrowser = require ( './helpers/run-browser' ) ;
9
9
10
- function startProxy ( port ) {
11
- const proxy = express ( ) ;
12
- proxy . use (
13
- '/' ,
14
- httpProxy ( {
15
- target : 'http://localhost:9001' ,
16
- ws : true ,
17
- changeOrigin : true ,
18
- } )
19
- ) ;
20
- return proxy . listen ( port ) ;
21
- }
22
-
23
10
describe ( 'Client code' , ( ) => {
11
+ function startProxy ( port ) {
12
+ const proxy = express ( ) ;
13
+ proxy . use (
14
+ '/' ,
15
+ httpProxy ( {
16
+ target : 'http://localhost:9001' ,
17
+ ws : true ,
18
+ changeOrigin : true ,
19
+ } )
20
+ ) ;
21
+ return proxy . listen ( port ) ;
22
+ }
23
+
24
24
beforeAll ( ( done ) => {
25
25
const options = {
26
26
compress : true ,
@@ -47,8 +47,10 @@ describe('Client code', () => {
47
47
proxy = startProxy ( 9000 ) ;
48
48
} ) ;
49
49
50
- afterAll ( ( ) => {
51
- proxy . close ( ) ;
50
+ afterAll ( ( done ) => {
51
+ proxy . close ( ( ) => {
52
+ done ;
53
+ } ) ;
52
54
} ) ;
53
55
54
56
it ( 'responds with a 200' , ( done ) => {
You can’t perform that action at this time.
0 commit comments