test(aio): improve test description and expectations

This commit is contained in:
Georgios Kalpakas
2017-03-12 09:41:04 +02:00
committed by Chuck Jazdzewski
parent 17f5f3b32c
commit 0c5f893f6e
3 changed files with 13 additions and 12 deletions

View File

@ -84,9 +84,10 @@ describe('upload-server (on HTTP)', () => {
});
it('should accept SHAs with leading zeros (but not ignore them)', done => {
it('should accept SHAs with leading zeros (but not trim the zeros)', done => {
Promise.all([
h.runCmd(`${curl} http://${host}/create-build/${pr}/0${sha9}`).then(h.verifyResponse(404)),
h.runCmd(`${curl} http://${host}/create-build/${pr}/${sha9}`).then(h.verifyResponse(500)),
h.runCmd(`${curl} http://${host}/create-build/${pr}/${sha0}`).then(h.verifyResponse(500)),
]).then(done);
});