From 9bebaff48ebe89ce822a7427e5c9a65837ed68d9 Mon Sep 17 00:00:00 2001 From: Jake Date: Tue, 10 Feb 2015 21:44:01 -0600 Subject: [PATCH] Test invalid render type --- test/test.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/test.js b/test/test.js index 89ad12b..8e933ec 100644 --- a/test/test.js +++ b/test/test.js @@ -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) {