Skip to content

Commit

Permalink
馃И Update max hp tests to expect trackers
Browse files Browse the repository at this point in the history
  • Loading branch information
voidrender committed Nov 24, 2023
1 parent 796309d commit 971c7c5
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions test/convert.maxHp.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { beforeEach, describe, expect, test } from '@jest/globals';
import { convertCharacter } from '../src';
import { AlchemyTrackerCategory } from '../src/alchemy.d';
import { DdbCharacter, DdbStatType } from '../src/ddb';
import { DeepPartial } from './test-helpers';

Expand Down Expand Up @@ -48,10 +49,14 @@ describe('Convert DDB maxHP to Alchemy maxHP', () => {
con;

const converted = convertCharacter(ddbChar as DdbCharacter, {
maxHp: true,
trackers: true,
});

expect(converted.maxHp).toEqual(expected);
expect(
converted.trackers?.find(
(t) => t.category === AlchemyTrackerCategory.Health,
)?.value,
).toEqual(expected);
},
);
});

0 comments on commit 971c7c5

Please sign in to comment.