fix: 전용 장수 아이콘 뒤 기본 이미지 중첩 제거

This commit is contained in:
2026-09-29 08:43:13 +00:00
parent aea5056834
commit 295ecb39a3
5 changed files with 88 additions and 34 deletions
+1 -9
View File
@@ -3,7 +3,6 @@ import { describe, it } from 'node:test';
import {
DEFAULT_GENERAL_ICON_URL,
resolveGeneralIconBackgroundImage,
resolveGeneralIconUrl,
resolveMessageGeneralIconUrl,
} from '../src/utils/generalIcon.ts';
@@ -38,18 +37,11 @@ void describe('generalIcon', () => {
);
});
void it('uses a deterministic default and safe layered fallback for CSS backgrounds', () => {
void it('uses a deterministic default when the picture is missing', () => {
assert.equal(
resolveGeneralIconUrl({ picture: null, imageServer: 0 }),
'https://sam-image.hided.net/icons/default.jpg'
);
assert.equal(
resolveGeneralIconBackgroundImage(
{ picture: 'custom.jpg', imageServer: 1 },
{ userIconBaseUrl: '/gateway/api/user-icons' }
),
'url("/gateway/api/user-icons/custom.jpg"), url("https://sam-image.hided.net/icons/default.jpg")'
);
});
void it('resolves stored NPC message pictures like directory icons across scenarios', () => {