File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11const { handleMessage, validGitRequest, stripGitHubFromGitPath } = require ( '../src/proxy/routes' ) ;
22const 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' ) ;
38
9+ chai . use ( chaiHttp ) ;
10+ chai . should ( ) ;
411const expect = chai . expect ;
512
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+
628describe ( 'proxy route helpers' , ( ) => {
729 describe ( 'handleMessage' , async ( ) => {
830 it ( 'should handle short messages' , async function ( ) {
You can’t perform that action at this time.
0 commit comments