mirror of
https://github.com/azures04/crafatar.git
synced 2026-03-21 23:41:18 +01:00
print base64 encoded body if CRC does not match
This commit is contained in:
parent
8b2ccf3368
commit
b0f50cbed0
@ -799,7 +799,7 @@ describe("Crafatar", function() {
|
|||||||
try {
|
try {
|
||||||
assert.ok(matches);
|
assert.ok(matches);
|
||||||
} catch(e) {
|
} catch(e) {
|
||||||
throw new Error(crc(body) + " != " + location.crc32);
|
throw new Error(crc(body) + " != " + location.crc32 + " | " + body.toString("base64"));
|
||||||
}
|
}
|
||||||
assert.strictEqual(res.headers.location, location.redirect);
|
assert.strictEqual(res.headers.location, location.redirect);
|
||||||
if (location.etag === undefined) {
|
if (location.etag === undefined) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user