fix(api): sweep every remaining test fixture off level/experience/requiredLevel/experienceReward

This commit is contained in:
Bastian Wagner
2026-08-21 14:19:12 +02:00
parent 8835671657
commit 34a7bb9dbd
7 changed files with 9 additions and 16 deletions

View File

@@ -257,11 +257,10 @@ function itemDefinition(
key: 'worn-short-sword',
name: 'Abgenutztes Kurzschwert',
description: '',
type: ItemType.WEAPON,
type: ItemType.EQUIPMENT,
equipmentSlot: EquipmentSlot.WEAPON,
rarity: ItemRarity.COMMON,
tier: 1,
requiredLevel: 1,
weaponDamage: 8,
bonusHp: 0,
bonusAttack: 0,

View File

@@ -168,7 +168,7 @@ function itemDefinition(
key: 'worn-short-sword',
name: 'Abgenutztes Kurzschwert',
description: '',
type: ItemType.WEAPON,
type: ItemType.EQUIPMENT,
equipmentSlot: EquipmentSlot.WEAPON,
rarity: ItemRarity.COMMON,
tier: 1,
@@ -365,7 +365,7 @@ describe('EquipmentService', () => {
const material = itemDefinition({
id: 'def-ash-pelt',
key: 'ash-pelt',
type: ItemType.MATERIAL,
type: ItemType.TRADE_GOOD,
equipmentSlot: null,
});
const { service } = createHarness({

View File

@@ -233,8 +233,7 @@ function character(currentLocation: LocationDefinition): Character {
return {
id: CHARACTER_ID,
name: 'Aric Duskwalker',
level: 1,
experience: 0,
renown: 1,
silver: 0,
baseHp: 100,
baseAttack: 6,

View File

@@ -20,9 +20,8 @@ function characterItem(overrides: Partial<CharacterItem> = {}): CharacterItem {
key: 'worn-short-sword',
name: 'Abgenutztes Kurzschwert',
rarity: ItemRarity.COMMON,
type: ItemType.WEAPON,
type: ItemType.EQUIPMENT,
equipmentSlot: EquipmentSlot.WEAPON,
requiredLevel: 1,
weaponDamage: 8,
bonusAttack: 0,
bonusHp: 0,
@@ -69,7 +68,6 @@ describe('InventoryService', () => {
name: 'Abgenutztes Kurzschwert',
rarity: 'COMMON',
equipmentSlot: 'WEAPON',
requiredLevel: 1,
weaponDamage: 8,
bonusAttack: 0,
bonusHp: 0,

View File

@@ -15,7 +15,6 @@ export interface InventoryItemDto {
name: string;
rarity: ItemRarity;
equipmentSlot: EquipmentSlot | null;
requiredLevel: number;
weaponDamage: number;
bonusAttack: number;
bonusHp: number;
@@ -58,7 +57,6 @@ export class InventoryService {
name: characterItem.itemDefinition.name,
rarity: characterItem.itemDefinition.rarity,
equipmentSlot: characterItem.itemDefinition.equipmentSlot,
requiredLevel: characterItem.itemDefinition.requiredLevel,
weaponDamage: characterItem.itemDefinition.weaponDamage,
bonusAttack: characterItem.itemDefinition.bonusAttack,
bonusHp: characterItem.itemDefinition.bonusHp,

View File

@@ -159,7 +159,7 @@ function createState(overrides: Partial<State> = {}): State {
id: BANDIT_BLADE,
key: 'bandit-blade',
name: 'Räuberklinge',
type: ItemType.WEAPON,
type: ItemType.EQUIPMENT,
rarity: ItemRarity.COMMON,
iconPath: '/images/items/bandit-blade.png',
} as ItemDefinition,
@@ -437,7 +437,7 @@ describe('CombatRewardService', () => {
id: BANDIT_BLADE,
key: 'bandit-blade',
name: 'Räuberklinge',
type: ItemType.WEAPON,
type: ItemType.EQUIPMENT,
rarity: ItemRarity.COMMON,
iconPath: '/images/items/bandit-blade.png',
} as ItemDefinition,
@@ -445,7 +445,7 @@ describe('CombatRewardService', () => {
id: BANDIT_HOOD,
key: 'bandit-hood',
name: 'Räuberkapuze',
type: ItemType.ARMOR,
type: ItemType.EQUIPMENT,
rarity: ItemRarity.COMMON,
iconPath: '/images/items/bandit-hood.png',
} as ItemDefinition,

View File

@@ -177,8 +177,7 @@ function createState(): FakeState {
const character: Character = {
id: CHARACTER_ID,
name: 'Aric Duskwalker',
level: 1,
experience: 0,
renown: 1,
silver: 0,
baseHp: 100,
baseAttack: 6,