1
0
Fork 0
mirror of https://codeberg.org/demostf/api.git synced 2026-06-03 18:04:08 +02:00

better status codes, again

This commit is contained in:
Robin Appelman 2020-11-25 23:26:54 +01:00
commit c7b637a05f
6 changed files with 78 additions and 7 deletions

View file

@ -201,7 +201,7 @@ describe("Set url", function () {
}
});
expect(setUrl).to.be.containsText('Invalid key');
expect(setUrl).to.have.status(500);
expect(setUrl).to.have.status(401);
return chakram.wait();
});
});
@ -220,7 +220,7 @@ describe("Set url", function () {
}
});
expect(setUrl).to.be.containsText('Invalid demo hash');
expect(setUrl).to.have.status(500);
expect(setUrl).to.have.status(412);
return chakram.wait();
});
});