File tree 2 files changed +8
-2
lines changed 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 127
127
"coveralls" : " ^2.11.2" ,
128
128
"deep-strict-equal" : " ^0.1.0" ,
129
129
"dox" : " ^0.8.0" ,
130
- "express" : " ^4.13.4" ,
131
130
"glob" : " ^5.0.9" ,
132
131
"globby" : " ^3.0.1" ,
133
132
"istanbul" : " ^0.3.5" ,
Original file line number Diff line number Diff line change @@ -111,10 +111,17 @@ describe('documentation', function() {
111
111
global : global
112
112
} ;
113
113
114
+ function FakeExpress ( ) {
115
+ return {
116
+ get : function ( ) { }
117
+ } ;
118
+ }
119
+
114
120
fileDocBlocks . methods . forEach ( function ( method ) {
115
121
var code = method . examples . map ( prop ( 'code' ) ) . join ( '\n' )
116
122
. replace ( / r e q u i r e \( \' g c l o u d \' \) / g, 'require(\'..\/\')' )
117
- . replace ( / r e q u i r e \( \' g c l o u d / g, 'require(\'..' ) ;
123
+ . replace ( / r e q u i r e \( \' g c l o u d / g, 'require(\'..' )
124
+ . replace ( 'require(\'express\')' , FakeExpress . toString ( ) ) ;
118
125
119
126
var displayName = filename
120
127
. replace ( 'docs/json/master/' , '' )
You can’t perform that action at this time.
0 commit comments