Skip to content

Commit

Permalink
Fixed makeApp() in endpoint testing recipe (#1479)
Browse files Browse the repository at this point in the history
  • Loading branch information
ydaniv authored and novemberborn committed Aug 5, 2017
1 parent 465fcec commit e28be05
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/recipes/endpoint-testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Since tests run concurrently, it's best to create a fresh server instance for ea
```js
function makeApp() {
const app = express();
app.use(bodyParser.json());
app.post('/signup', signupHandler);
return app;
}
Expand Down

0 comments on commit e28be05

Please sign in to comment.