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 86d3bb2de8
.
* fix: set helmet to v3.21.3
Co-authored-by: moT01 <20648924+moT01@users.noreply.github.com>
This commit is contained in:
@ -14,7 +14,8 @@ Helmet helps you secure your Express apps by setting various HTTP headers.
|
|||||||
|
|
||||||
## Instructions
|
## Instructions
|
||||||
<section id='instructions'>
|
<section id='instructions'>
|
||||||
Install the Helmet package, then require it.
|
|
||||||
|
Install Helmet version `3.21.3`, then require it.
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
## Tests
|
## Tests
|
||||||
@ -22,8 +23,8 @@ Install the Helmet package, then require it.
|
|||||||
|
|
||||||
```yml
|
```yml
|
||||||
tests:
|
tests:
|
||||||
- text: '"helmet" dependency should be in package.json'
|
- 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.property(packJson.dependencies, 'helmet'); }, xhr => { throw new Error(xhr.responseText); })
|
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); })
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user