소스 검색

compact code for cape tests

jomo 10 년 전
부모
커밋
d981b34d0b
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      test/test.js

+ 1 - 1
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();