fix(learn): update helmet.js instructions for specific versioning (#39194)

* fix(client): update middleware names of helmet.js tests

* Revert "fix(client): update middleware names of helmet.js tests"

This reverts commit 86d3bb2de8bbd2085939fc4af7b5356b9dc577e2.

* fix: set helmet to v3.21.3

Co-authored-by: moT01 <20648924+moT01@users.noreply.github.com>
This commit is contained in:
Haile Lagi 2020-09-03 15:58:28 +01:00 committed by GitHub
parent 56469d1c5c
commit 77bf5630f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,7 +14,8 @@ Helmet helps you secure your Express apps by setting various HTTP headers.
## Instructions
<section id='instructions'>
Install the Helmet package, then require it.
Install Helmet version `3.21.3`, then require it.
</section>
## Tests
@ -22,8 +23,8 @@ Install the Helmet package, then require it.
```yml
tests:
- text: '"helmet" dependency should be in package.json'
testString: getUserInput => $.get(getUserInput('url') + '/_api/package.json').then(data => { var packJson = JSON.parse(data); assert.property(packJson.dependencies, 'helmet'); }, xhr => { throw new Error(xhr.responseText); })
- text: '<code>helmet</code> version <code>3.21.3</code> should be in <code>package.json</code>'
testString: getUserInput => $.get(getUserInput('url') + '/_api/package.json').then(data => { var packJson = JSON.parse(data); assert(packJson.dependencies.helmet === '3.21.3' ); }, xhr => { throw new Error(xhr.responseText); })
```