|
@@ -352,11 +352,16 @@ describe("Crafatar", function() {
|
|
|
etag: '"alex"',
|
|
|
crc32: [862751081, 809395677]
|
|
|
},
|
|
|
- "avatar with non-existent username defaulting to userId": {
|
|
|
+ "avatar with non-existent username defaulting to username": {
|
|
|
url: "http://localhost:3000/avatars/0?size=16&default=jeb_",
|
|
|
crc32: 0,
|
|
|
redirect: "/avatars/jeb_?size=16"
|
|
|
},
|
|
|
+ "avatar with non-existent username defaulting to uuid": {
|
|
|
+ url: "http://localhost:3000/avatars/0?size=16&default=853c80ef3c3749fdaa49938b674adae6",
|
|
|
+ crc32: 0,
|
|
|
+ redirect: "/avatars/853c80ef3c3749fdaa49938b674adae6?size=16"
|
|
|
+ },
|
|
|
"avatar with non-existent username defaulting to url": {
|
|
|
url: "http://localhost:3000/avatars/0?size=16&default=http://example.com",
|
|
|
crc32: 0,
|
|
@@ -377,11 +382,16 @@ describe("Crafatar", function() {
|
|
|
etag: '"alex"',
|
|
|
crc32: [862751081, 809395677]
|
|
|
},
|
|
|
- "helm avatar with non-existent username defaulting to userId": {
|
|
|
+ "helm avatar with non-existent username defaulting to username": {
|
|
|
url: "http://localhost:3000/avatars/0?size=16&helm&default=jeb_",
|
|
|
crc32: 0,
|
|
|
redirect: "/avatars/jeb_?size=16&helm="
|
|
|
},
|
|
|
+ "helm avatar with non-existent username defaulting to uuid": {
|
|
|
+ url: "http://localhost:3000/avatars/0?size=16&helm&default=853c80ef3c3749fdaa49938b674adae6",
|
|
|
+ crc32: 0,
|
|
|
+ redirect: "/avatars/853c80ef3c3749fdaa49938b674adae6?size=16&helm="
|
|
|
+ },
|
|
|
"helm avatar with non-existent username defaulting to url": {
|
|
|
url: "http://localhost:3000/avatars/0?size=16&helm&default=http://example.com",
|
|
|
crc32: 0,
|
|
@@ -402,11 +412,16 @@ describe("Crafatar", function() {
|
|
|
etag: '"alex"',
|
|
|
crc32: [862751081, 809395677]
|
|
|
},
|
|
|
- "avatar with non-existent uuid defaulting to userId": {
|
|
|
+ "avatar with non-existent uuid defaulting to username": {
|
|
|
url: "http://localhost:3000/avatars/00000000000000000000000000000000?size=16&default=jeb_",
|
|
|
crc32: 0,
|
|
|
redirect: "/avatars/jeb_?size=16"
|
|
|
},
|
|
|
+ "avatar with non-existent uuid defaulting to uuid": {
|
|
|
+ url: "http://localhost:3000/avatars/00000000000000000000000000000000?size=16&default=853c80ef3c3749fdaa49938b674adae6",
|
|
|
+ crc32: 0,
|
|
|
+ redirect: "/avatars/853c80ef3c3749fdaa49938b674adae6?size=16"
|
|
|
+ },
|
|
|
"avatar with non-existent uuid defaulting to url": {
|
|
|
url: "http://localhost:3000/avatars/00000000000000000000000000000000?size=16&default=http://example.com",
|
|
|
crc32: 0,
|
|
@@ -427,11 +442,16 @@ describe("Crafatar", function() {
|
|
|
etag: '"alex"',
|
|
|
crc32: [862751081, 809395677]
|
|
|
},
|
|
|
- "helm avatar with non-existent uuid defaulting to userId": {
|
|
|
+ "helm avatar with non-existent uuid defaulting to username": {
|
|
|
url: "http://localhost:3000/avatars/00000000000000000000000000000000?size=16&default=jeb_",
|
|
|
crc32: 0,
|
|
|
redirect: "/avatars/jeb_?size=16"
|
|
|
},
|
|
|
+ "helm avatar with non-existent uuid defaulting to uuid": {
|
|
|
+ url: "http://localhost:3000/avatars/00000000000000000000000000000000?size=16&default=853c80ef3c3749fdaa49938b674adae6",
|
|
|
+ crc32: 0,
|
|
|
+ redirect: "/avatars/853c80ef3c3749fdaa49938b674adae6?size=16"
|
|
|
+ },
|
|
|
"helm avatar with non-existent uuid defaulting to url": {
|
|
|
url: "http://localhost:3000/avatars/00000000000000000000000000000000?size=16&helm&default=http://example.com",
|
|
|
crc32: 0,
|
|
@@ -480,11 +500,16 @@ describe("Crafatar", function() {
|
|
|
etag: '"alex"',
|
|
|
crc32: 2298915739
|
|
|
},
|
|
|
- "skin with non-existent username defaulting to userId": {
|
|
|
+ "skin with non-existent username defaulting to username": {
|
|
|
url: "http://localhost:3000/skins/0?size=16&default=jeb_",
|
|
|
crc32: 0,
|
|
|
redirect: "/skins/jeb_?size=16"
|
|
|
},
|
|
|
+ "skin with non-existent username defaulting to uuid": {
|
|
|
+ url: "http://localhost:3000/skins/0?size=16&default=853c80ef3c3749fdaa49938b674adae6",
|
|
|
+ crc32: 0,
|
|
|
+ redirect: "/skins/853c80ef3c3749fdaa49938b674adae6?size=16"
|
|
|
+ },
|
|
|
"skin with non-existent username defaulting to url": {
|
|
|
url: "http://localhost:3000/skins/0?default=http://example.com",
|
|
|
crc32: 0,
|
|
@@ -505,11 +530,16 @@ describe("Crafatar", function() {
|
|
|
etag: '"alex"',
|
|
|
crc32: 2298915739
|
|
|
},
|
|
|
- "skin with non-existent uuid defaulting to userId": {
|
|
|
+ "skin with non-existent uuid defaulting to username": {
|
|
|
url: "http://localhost:3000/skins/00000000000000000000000000000000?size=16&default=jeb_",
|
|
|
crc32: 0,
|
|
|
redirect: "/skins/jeb_?size=16"
|
|
|
},
|
|
|
+ "skin with non-existent uuid defaulting to uuid": {
|
|
|
+ url: "http://localhost:3000/skins/00000000000000000000000000000000?size=16&default=853c80ef3c3749fdaa49938b674adae6",
|
|
|
+ crc32: 0,
|
|
|
+ redirect: "/skins/853c80ef3c3749fdaa49938b674adae6?size=16"
|
|
|
+ },
|
|
|
"skin with non-existent uuid defaulting to url": {
|
|
|
url: "http://localhost:3000/skins/00000000000000000000000000000000?default=http://example.com",
|
|
|
crc32: 0,
|
|
@@ -532,11 +562,16 @@ describe("Crafatar", function() {
|
|
|
etag: '"alex"',
|
|
|
crc32: [1240086237, 1108800327]
|
|
|
},
|
|
|
- "head render with non-existent username defaulting to userId": {
|
|
|
+ "head render with non-existent username defaulting to username": {
|
|
|
url: "http://localhost:3000/avatars/0?scale=2&default=jeb_",
|
|
|
crc32: 0,
|
|
|
redirect: "/avatars/jeb_?scale=2"
|
|
|
},
|
|
|
+ "head render with non-existent username defaulting to uuid": {
|
|
|
+ url: "http://localhost:3000/avatars/0?scale=2&default=853c80ef3c3749fdaa49938b674adae6",
|
|
|
+ crc32: 0,
|
|
|
+ redirect: "/avatars/853c80ef3c3749fdaa49938b674adae6?scale=2"
|
|
|
+ },
|
|
|
"head render with non-existent username defaulting to url": {
|
|
|
url: "http://localhost:3000/renders/head/0?scale=2&default=http://example.com",
|
|
|
crc32: 0,
|
|
@@ -557,11 +592,16 @@ describe("Crafatar", function() {
|
|
|
etag: '"alex"',
|
|
|
crc32: [2963161105, 1769904825]
|
|
|
},
|
|
|
- "helm head render with non-existent username defaulting to userId": {
|
|
|
+ "helm head render with non-existent username defaulting to username": {
|
|
|
url: "http://localhost:3000/renders/head/0?scale=2&helm&default=jeb_",
|
|
|
crc32: 0,
|
|
|
redirect: "/renders/head/jeb_?scale=2&helm="
|
|
|
},
|
|
|
+ "helm head render with non-existent username defaulting to uuid": {
|
|
|
+ url: "http://localhost:3000/renders/head/0?scale=2&helm&default=853c80ef3c3749fdaa49938b674adae6",
|
|
|
+ crc32: 0,
|
|
|
+ redirect: "/renders/head/853c80ef3c3749fdaa49938b674adae6?scale=2&helm="
|
|
|
+ },
|
|
|
"helm head render with non-existent username defaulting to url": {
|
|
|
url: "http://localhost:3000/renders/head/0?scale=2&helm&default=http://example.com",
|
|
|
crc32: 0,
|
|
@@ -582,11 +622,16 @@ describe("Crafatar", function() {
|
|
|
etag: '"alex"',
|
|
|
crc32: [1240086237, 1108800327]
|
|
|
},
|
|
|
- "head render with non-existent uuid defaulting to userId": {
|
|
|
+ "head render with non-existent uuid defaulting to username": {
|
|
|
url: "http://localhost:3000/renders/head/00000000000000000000000000000000?scale=2&default=jeb_",
|
|
|
crc32: 0,
|
|
|
redirect: "/renders/head/jeb_?scale=2"
|
|
|
},
|
|
|
+ "head render with non-existent uuid defaulting to uuid": {
|
|
|
+ url: "http://localhost:3000/renders/head/00000000000000000000000000000000?scale=2&default=853c80ef3c3749fdaa49938b674adae6",
|
|
|
+ crc32: 0,
|
|
|
+ redirect: "/renders/head/853c80ef3c3749fdaa49938b674adae6?scale=2"
|
|
|
+ },
|
|
|
"head render with non-existent uuid defaulting to url": {
|
|
|
url: "http://localhost:3000/renders/head/00000000000000000000000000000000?scale=2&default=http://example.com",
|
|
|
crc32: 0,
|
|
@@ -607,11 +652,16 @@ describe("Crafatar", function() {
|
|
|
etag: '"alex"',
|
|
|
crc32: [2963161105, 1769904825]
|
|
|
},
|
|
|
- "helm head with non-existent uuid defaulting to userId": {
|
|
|
+ "helm head with non-existent uuid defaulting to username": {
|
|
|
url: "http://localhost:3000/renders/head/00000000000000000000000000000000?scale=2&helm&default=jeb_",
|
|
|
crc32: 0,
|
|
|
redirect: "/renders/head/jeb_?scale=2&helm="
|
|
|
},
|
|
|
+ "helm head with non-existent uuid defaulting to uuid": {
|
|
|
+ url: "http://localhost:3000/renders/head/00000000000000000000000000000000?scale=2&helm&default=853c80ef3c3749fdaa49938b674adae6",
|
|
|
+ crc32: 0,
|
|
|
+ redirect: "/renders/head/853c80ef3c3749fdaa49938b674adae6?scale=2&helm="
|
|
|
+ },
|
|
|
"helm head render with non-existent uuid defaulting to url": {
|
|
|
url: "http://localhost:3000/renders/head/00000000000000000000000000000000?scale=2&helm&default=http://example.com",
|
|
|
crc32: 0,
|
|
@@ -632,11 +682,16 @@ describe("Crafatar", function() {
|
|
|
etag: '"alex"',
|
|
|
crc32: [407932087, 2516216042]
|
|
|
},
|
|
|
- "body render with non-existent username defaulting to userId": {
|
|
|
+ "body render with non-existent username defaulting to username": {
|
|
|
url: "http://localhost:3000/renders/body/0?scale=2&default=jeb_",
|
|
|
crc32: 0,
|
|
|
redirect: "/renders/body/jeb_?scale=2"
|
|
|
},
|
|
|
+ "body render with non-existent username defaulting to uuid": {
|
|
|
+ url: "http://localhost:3000/renders/body/0?scale=2&default=853c80ef3c3749fdaa49938b674adae6",
|
|
|
+ crc32: 0,
|
|
|
+ redirect: "/renders/body/853c80ef3c3749fdaa49938b674adae6?scale=2"
|
|
|
+ },
|
|
|
"body render with non-existent username defaulting to url": {
|
|
|
url: "http://localhost:3000/renders/body/0?scale=2&default=http://example.com",
|
|
|
crc32: 0,
|
|
@@ -657,11 +712,16 @@ describe("Crafatar", function() {
|
|
|
etag: '"alex"',
|
|
|
crc32: [737759773, 66512449]
|
|
|
},
|
|
|
- "helm body render with non-existent username defaulting to userId": {
|
|
|
+ "helm body render with non-existent username defaulting to username": {
|
|
|
url: "http://localhost:3000/renders/body/0?scale=2&helm&default=jeb_",
|
|
|
crc32: 0,
|
|
|
redirect: "/renders/body/jeb_?scale=2&helm="
|
|
|
},
|
|
|
+ "helm body render with non-existent username defaulting to uuid": {
|
|
|
+ url: "http://localhost:3000/renders/body/0?scale=2&helm&default=853c80ef3c3749fdaa49938b674adae6",
|
|
|
+ crc32: 0,
|
|
|
+ redirect: "/renders/body/853c80ef3c3749fdaa49938b674adae6?scale=2&helm="
|
|
|
+ },
|
|
|
"helm body render with non-existent username defaulting to url": {
|
|
|
url: "http://localhost:3000/renders/body/0?scale=2&helm&default=http://example.com",
|
|
|
crc32: 0,
|
|
@@ -682,11 +742,16 @@ describe("Crafatar", function() {
|
|
|
etag: '"alex"',
|
|
|
crc32: [407932087, 2516216042]
|
|
|
},
|
|
|
- "body render with non-existent uuid defaulting to userId": {
|
|
|
+ "body render with non-existent uuid defaulting to username": {
|
|
|
url: "http://localhost:3000/renders/body/0?scale=2&default=jeb_",
|
|
|
crc32: 0,
|
|
|
redirect: "/renders/body/jeb_?scale=2"
|
|
|
},
|
|
|
+ "body render with non-existent uuid defaulting to uuid": {
|
|
|
+ url: "http://localhost:3000/renders/body/0?scale=2&default=853c80ef3c3749fdaa49938b674adae6",
|
|
|
+ crc32: 0,
|
|
|
+ redirect: "/renders/body/853c80ef3c3749fdaa49938b674adae6?scale=2"
|
|
|
+ },
|
|
|
"body render with non-existent uuid defaulting to url": {
|
|
|
url: "http://localhost:3000/renders/body/00000000000000000000000000000000?scale=2&default=http://example.com",
|
|
|
crc32: 0,
|