Skip to content

Commit 5089f89

Browse files
authored
Merge pull request #2832 from MarcGuay/patch-25
Update part4b.md
2 parents b884565 + 3241dbb commit 5089f89

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/content/4/en/part4b.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ test('notes are returned as json', async () => {
214214

215215
This third parameter sets the timeout to 100000 ms. A long timeout ensures that our test won't fail due to the time it takes to run. (A long timeout may not be what you want for tests based on performance or speed, but this is fine for our example tests).
216216

217-
One tiny but important detail: at the [beginning](/en/part4/structure_of_backend_application_introduction_to_testing#project-structure) of this part we extracted the Express application into the <i>app.js</i> file, and the role of the <i>index.js</i> file was changed to launch the application at the specified port with Node's built-in <i>http</i> object:
217+
One tiny but important detail: at the [beginning](/en/part4/structure_of_backend_application_introduction_to_testing#project-structure) of this part we extracted the Express application into the <i>app.js</i> file, and the role of the <i>index.js</i> file was changed to launch the application at the specified port via `app.listen`:
218218

219219
```js
220220
const app = require('./app') // the actual Express app
@@ -226,7 +226,7 @@ app.listen(config.PORT, () => {
226226
})
227227
```
228228

229-
The tests only use the express application defined in the <i>app.js</i> file:
229+
The tests only use the Express application defined in the <i>app.js</i> file, which does not listen to any ports:
230230

231231
```js
232232
const mongoose = require('mongoose')

0 commit comments

Comments
 (0)