mirror of
https://github.com/azures04/crafatar.git
synced 2026-03-22 07:51:17 +01:00
Test invalid render type
This commit is contained in:
parent
cac316aeb3
commit
9bebaff48e
@ -229,6 +229,13 @@ describe("Server", function() {
|
||||
});
|
||||
});
|
||||
|
||||
it("should return a 422 (invalid render type)", function(done) {
|
||||
request.get("http://localhost:3000/renders/side/Jake0oo0", function(error, res, body) {
|
||||
assert.equal(422, res.statusCode);
|
||||
done();
|
||||
});
|
||||
});
|
||||
|
||||
// testing all paths for invalid id formats
|
||||
var locations = ["avatars", "capes", "skins", "renders/head"]
|
||||
for (var l in locations) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user