mirror of
https://github.com/azures04/crafatar.git
synced 2026-03-21 23:41:18 +01:00
Add tests for invalid URL paths, closes #123
This commit is contained in:
parent
f4e31eab4f
commit
7e8c65fb33
@ -858,6 +858,14 @@ describe("Crafatar", function() {
|
|||||||
done();
|
done();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
it("should return a 422 (invalid request path " + location + ")", function(done) {
|
||||||
|
request.get("http://localhost:3000/" + location + "/thisisaninvaliduuid/invalid", function(error, res, body) {
|
||||||
|
assert.ifError(error);
|
||||||
|
assert.strictEqual(res.statusCode, 422);
|
||||||
|
done();
|
||||||
|
});
|
||||||
|
});
|
||||||
}(loc));
|
}(loc));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user