feat(docker): prepare portable images with runtime hotel configuration
This commit is contained in:
1 parent
745d0b7247
commit
c4496e710b
28 files changed
+622
-104
No files matched your search
@@ -27,14 +27,14 @@ describe("avatarImageUrl", () => {
|
||||
expect(url).toContain("figure=hr-100");
|
||||
expect(url).toContain("size=l");
|
||||
expect(url).toContain("headonly=1");
|
||||
expect(url.startsWith("https://img.example.com?")).toBe(true);
|
||||
expect(url.startsWith("/api/imaging/avatar?")).toBe(true);
|
||||
});
|
||||
|
||||
it("preserves the exact user look instead of replacing it with a default figure", () => {
|
||||
const look =
|
||||
"hr-11782-40-40.hd-180-7-14.ch-11592-66.lg-10726-79-1408.sh-11764-1408.ha-11958-70-1408.wa-2007-0";
|
||||
|
||||
const url = new URL(avatarImageUrl(look));
|
||||
const url = new URL(avatarImageUrl(look), "https://hotel.test");
|
||||
|
||||
expect(url.searchParams.get("figure")).toBe(look);
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user