Updated NPM tilde test to work
parent
c83dca8745
commit
40f2655ce9
|
@ -255,8 +255,8 @@
|
|||
"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 match \"~2.10.x\"",
|
||||
"testString": "getUserInput => $.get(getUserInput('url') + '/_api/package.json').then(data => { var packJson = JSON.parse(data); assert.match(packJson.dependencies.moment, /^\\~2\\.10\\./. 'Wrong version of \"moment\". It should be ~2.10.2'); }, xhr => { throw new Error(xhr.responseText); })"
|
||||
"text": "\"moment\" version should match \"~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); })"
|
||||
}
|
||||
],
|
||||
"solutions": [],
|
||||
|
|
Loading…
Reference in New Issue