File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 63
63
return pEvent ( docProcess . stdout , 'data' ) . then ( function ( data ) {
64
64
const portNumber = data
65
65
. toString ( )
66
- . match ( / d o c u m e n t a t i o n .j s s e r v i n g o n p o r t ( \d + ) / ) ;
66
+ . match ( / d o c u m e n t a t i o n .j s s e r v i n g o n p o r t 4 0 0 4 / ) ;
67
67
expect ( portNumber ) . toBeTruthy ( ) ;
68
- return get ( `http://localhost:${ portNumber [ 1 ] } /` ) . then ( function ( text ) {
68
+ return get ( `http://localhost:4004 /` ) . then ( function ( text ) {
69
69
expect ( text . match ( / < h t m l > / ) ) . toBeTruthy ( ) ;
70
70
docProcess . kill ( ) ;
71
71
} ) ;
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ module.exports.handler = function serve(argv: Object) {
54
54
}
55
55
}
56
56
57
- getPort ( argv . port ) . then ( port => {
57
+ getPort ( { port : argv . port } ) . then ( port => {
58
58
const server = new Server ( port ) ;
59
59
let watcher ;
60
60
You can’t perform that action at this time.
0 commit comments