From d981b34d0bc7d82bbb86a53e2ef2edf4cd3ed395 Mon Sep 17 00:00:00 2001 From: jomo Date: Sat, 25 Apr 2015 21:25:43 +0200 Subject: [PATCH] compact code for cape tests --- test/test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test.js b/test/test.js index b5cdb47..9298f5e 100644 --- a/test/test.js +++ b/test/test.js @@ -464,7 +464,7 @@ describe("Crafatar", function() { assert(res.headers["x-storage-type"]); assert.strictEqual(res.headers["etag"], location.etag); assert.strictEqual(crc(body), location.crc32); - if (location.url.substr(21, 7) === "/capes/" && !body) { + if (location.etag === undefined) { assert.strictEqual(res.statusCode, 404); assert.strictEqual(res.headers["content-type"], "text/plain"); done();