4.3 KiB
4.3 KiB
id, title, challengeType, forumTopicId, localeTitle
id | title | challengeType | forumTopicId | localeTitle |
---|---|---|---|---|
587d7fb5367417b2b2512c01 | Manage npm Dependencies By Understanding Semantic Versioning | 2 | 301529 | Управляйте зависимостями npm, понимая семантическое управление версиями |
Description
Instructions
version
of moment to match MAJOR version 2, MINOR version 10 and PATCH version 2
Tests
tests:
- text: '"dependencies" should include "moment"'
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: '"moment" version should be "2.10.2"'
testString: getUserInput => $.get(getUserInput('url') + '/_api/package.json').then(data => { var packJson = JSON.parse(data); assert.equal(packJson.dependencies.moment,"2.10.2", 'Wrong version of "moment". It should be 2.10.2'); }, xhr => { throw new Error(xhr.responseText); })