fix(tests): remove broken test index files and fix computed-stats import
Build and Publish Mana Loop Docker Image / build-and-publish (push) Successful in 1m24s
Build and Publish Mana Loop Docker Image / build-and-publish (push) Successful in 1m24s
This commit is contained in:
@@ -2,6 +2,7 @@ import { describe, it, expect } from 'vitest';
|
||||
import { calculateEffectCapacityCost, ENCHANTMENT_EFFECTS } from '../data/enchantment-effects';
|
||||
import { EQUIPMENT_TYPES } from '../data/equipment';
|
||||
import { ATTUNEMENTS_DEF, getAttunementConversionRate } from '../data/attunements';
|
||||
import { getFloorMaxHP } from '../utils';
|
||||
|
||||
describe('Enchantment Capacity Validation', () => {
|
||||
it('should calculate capacity cost for single stack effects', () => {
|
||||
@@ -82,23 +83,19 @@ describe('Attunement Mana Type Unlocking', () => {
|
||||
});
|
||||
|
||||
describe('Floor HP State', () => {
|
||||
it('should have getFloorMaxHP function that returns positive values', async () => {
|
||||
const { getFloorMaxHP } = await import('../computed-stats');
|
||||
|
||||
it('should have getFloorMaxHP function that returns positive values', () => {
|
||||
for (let floor = 1; floor <= 100; floor++) {
|
||||
const hp = getFloorMaxHP(floor);
|
||||
expect(hp).toBeGreaterThan(0);
|
||||
}
|
||||
});
|
||||
|
||||
it('should scale HP correctly with floor progression', async () => {
|
||||
const { getFloorMaxHP } = await import('../computed-stats');
|
||||
|
||||
it('should scale HP correctly with floor progression', () => {
|
||||
const hp1 = getFloorMaxHP(1);
|
||||
const hp10 = getFloorMaxHP(10);
|
||||
const hp50 = getFloorMaxHP(50);
|
||||
const hp100 = getFloorMaxHP(100);
|
||||
|
||||
|
||||
expect(hp10).toBeGreaterThan(hp1);
|
||||
expect(hp50).toBeGreaterThan(hp10);
|
||||
expect(hp100).toBeGreaterThan(hp50);
|
||||
|
||||
Reference in New Issue
Block a user