data: add 64 charts and event challenge
Publish GitHub Pages output / publish (push) Successful in 33s
Publish GitHub Pages output / publish (push) Successful in 33s
This commit is contained in:
@@ -39,6 +39,20 @@ test('신규 카드 공통 보너스와 현재 챕터 멤버 보너스를 따로
|
||||
assert.equal(eventChallengeSongScoreBonusPercent(aki, 'm0349', [aki.featuredCardIds[1]]), 0);
|
||||
});
|
||||
|
||||
test('9월 25일 20시부터 아냐와 64.가 마지막 챕터 보너스를 받는다', () => {
|
||||
const before = activeEventAt(events, Date.parse('2026-09-25T10:59:59.999Z'))!;
|
||||
const anya = activeEventAt(events, Date.parse('2026-09-25T11:00:00.000Z'))!;
|
||||
const featuredAnya = { id: 'card-03005-5-uniq-0084-00', characterId: 'chr-03005', rarity: 5 };
|
||||
|
||||
assert.equal(before.id, 'marathon_event-relay-002-chapter-03');
|
||||
assert.equal(anya.id, 'marathon_event-relay-002-chapter-04');
|
||||
assert.deepEqual(anya.bonusCharacterIds, ['chr-03005']);
|
||||
assert.deepEqual(anya.challengeSongBonusCardIds, { m0352: [featuredAnya.id] });
|
||||
assert.equal(eventBonusBreakdown(anya, [featuredAnya], () => 0).totalPercent, 100);
|
||||
assert.equal(eventChallengeSongScoreBonusPercent(anya, 'm0352', [featuredAnya.id]), 10);
|
||||
assert.equal(eventChallengeSongScoreBonusPercent(before, 'm0352', [featuredAnya.id]), 0);
|
||||
});
|
||||
|
||||
test('이벤트 기간 안에서만 진행 중 이벤트를 반환한다', () => {
|
||||
assert.equal(activeEventAt(events, Date.parse('2026-08-29T02:59:59.999Z')), null);
|
||||
assert.equal(activeEventAt(events, Date.parse('2026-08-31T00:00:00.000Z'))?.id, currentEvent.id);
|
||||
|
||||
Reference in New Issue
Block a user