3.0 KiB
3.0 KiB
id, title, localeTitle, challengeType
id | title | localeTitle | challengeType |
---|---|---|---|
587d7fb5367417b2b2512c01 | Manage npm Dependencies By Understanding Semantic Versioning | Administre las dependencias de npm entendiendo el control de versiones semántico | 2 |
Description
Instructions
Tests
tests:
- text: '"dependencias" debe incluir "momento"'
testString: 'getUserInput => $.get(getUserInput(''url'') + ''/_api/package.json'').then(data => { var packJson = JSON.parse(data); assert.property(packJson.dependencies, ''moment'', ''"dependencies" does not include "moment"''); }, xhr => { throw new Error(xhr.responseText); })'
- text: La versión "moment" debería ser "2.10.2" '
testString: 'getUserInput => $.get(getUserInput(''url'') + ''/_api/package.json'').then(data => { var packJson = JSON.parse(data); assert.match(packJson.dependencies.moment, /^[\^\~]?2\.10\.2/, ''Wrong version of "moment". It should be 2.10.2''); }, xhr => { throw new Error(xhr.responseText); })'
Challenge Seed
Solution
// solution required