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 470a8a4
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,
)?.max,
).toEqual(expected);
},
);
});

0 comments on commit 470a8a4

Please sign in to comment.