Skip to content

Commit

Permalink
馃И Update exp test to check value and max
Browse files Browse the repository at this point in the history
  • Loading branch information
voidrender committed Nov 24, 2023
1 parent 470a8a4 commit f8456ce
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions test/convert.exp.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ describe('Convert DDB currentXp to Alchemy tracker', () => {
${10} | ${10}
${0} | ${0}
`(
'returns tracker.current=$expected when currentXp=$currentXp',
'returns tracker.value=$expected when currentXp=$currentXp',
({ currentXp, expected }) => {
const ddbChar: DeepPartial<DdbCharacter> = {
currentXp,
Expand All @@ -20,11 +20,12 @@ describe('Convert DDB currentXp to Alchemy tracker', () => {
trackers: true,
});

expect(
converted.trackers?.find(
(t) => t.category === AlchemyTrackerCategory.Experience,
)?.value,
).toEqual(expected);
const expTracker = converted.trackers?.find(
(t) => t.category === AlchemyTrackerCategory.Experience,
);

expect(expTracker.value).toEqual(expected);
expect(expTracker.max).toEqual(355000);
},
);
});

0 comments on commit f8456ce

Please sign in to comment.