걸음 수 Health Connect·HealthKit · 위치 퀘스트 사진·QR 인증 · 행성 형태 확정

This commit is contained in:
Sn-Kinos
2026-10-05 23:57:01 +09:00
parent dc9861df38
commit dce2f64362
44 changed files with 930 additions and 66 deletions
@@ -93,6 +93,18 @@ describe('프로필 사진 — users/{uid}/profile', () => {
await assertSucceeds(deleteObject(ref(storageFor('alice'), path)));
});
test('방문 인증 사진은 본인 경로에 10MB 이하 이미지 한 번만, 지우지 못한다 (C-03)', async () => {
const path = 'questProofs/alice/quest-1/1.jpg';
const jpeg = { contentType: 'image/jpeg' };
await assertSucceeds(uploadBytes(ref(storageFor('alice'), path), bytesOf(1024), jpeg));
await assertFails(uploadBytes(ref(storageFor('alice'), path), bytesOf(1024), jpeg));
await assertFails(uploadBytes(ref(storageFor('bob'), 'questProofs/alice/quest-1/2.jpg'), bytesOf(1024), jpeg));
await assertFails(
uploadBytes(ref(storageFor('alice'), 'questProofs/alice/quest-1/3.jpg'), bytesOf(10 * 1024 * 1024 + 1), jpeg),
);
await assertFails(deleteObject(ref(storageFor('alice'), path)));
});
test('열지 않은 경로는 기본 거부다', async () => {
await assertFails(
uploadBytes(ref(storageFor('alice'), 'posts/post-1/media/1.png'), bytesOf(1024), image),