mirror of
https://github.com/azures04/crafatar.git
synced 2026-03-22 07:51:17 +01:00
compact code for cape tests
This commit is contained in:
parent
8ad35aeea2
commit
d981b34d0b
@ -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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user