Skip to content

Commit

Permalink
Merge pull request #120 from jjaffeux/build-error-1
Browse files Browse the repository at this point in the history
Fixes yarn run build:browser
  • Loading branch information
crutchcorn authored Feb 10, 2021
2 parents 5b87e6b + b608e33 commit 8843d00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/test/common/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import serveStatic = require('serve-static')
const staticFiles = serveStatic(path.join(__dirname, '../../../fixtures/sample/images/'))
const serverHandler = (req: http.IncomingMessage, res: http.ServerResponse) => {
let done = finalhandler(req, res)
return staticFiles(<any>req, <any>res, done)
return staticFiles(<any>req, <any>res, <any>done)
}

export const createSampleServer = () => http.createServer(serverHandler)

0 comments on commit 8843d00

Please sign in to comment.