File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change 1
1
const { handleMessage, validGitRequest, stripGitHubFromGitPath } = require ( '../src/proxy/routes' ) ;
2
2
const chai = require ( 'chai' ) ;
3
+ const chaiHttp = require ( 'chai-http' ) ;
4
+ const sinon = require ( 'sinon' ) ;
5
+ const express = require ( 'express' ) ;
6
+ const proxyRouter = require ( '../src/proxy/routes' ) . router ;
7
+ const chain = require ( '../src/proxy/chain' ) ;
3
8
9
+ chai . use ( chaiHttp ) ;
10
+ chai . should ( ) ;
4
11
const expect = chai . expect ;
5
12
13
+ describe ( 'proxy route filter middleware' , ( ) => {
14
+ let app ;
15
+
16
+ beforeEach ( ( ) => {
17
+ app = express ( ) ;
18
+ app . use ( '/' , proxyRouter ) ;
19
+ } ) ;
20
+
21
+ afterEach ( ( ) => {
22
+ sinon . restore ( ) ;
23
+ } ) ;
24
+
25
+ } ) ;
26
+ } ) ;
27
+
6
28
describe ( 'proxy route helpers' , ( ) => {
7
29
describe ( 'handleMessage' , async ( ) => {
8
30
it ( 'should handle short messages' , async function ( ) {
You can’t perform that action at this time.
0 commit comments