fix broken test (#15304)

Co-authored-by: Phillip Thelen <phillip@habitica.com>
This commit is contained in:
Sabe Jones 2024-08-28 14:39:52 -05:00 committed by GitHub
parent 949f638b6e
commit 83a430afad
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -53,9 +53,11 @@ describe('shops', () => {
});
it('does not contain past scheduled premium hatching potions', async () => {
clock = sinon.useFakeTimers(new Date('2024-04-01T09:00:00.000Z'));
const potions = shared.shops.getMarketCategories(user).find(x => x.identifier === 'premiumHatchingPotions');
expect(potions.items.filter(x => x.key === 'Aquatic' || x.key === 'Celestial').length).to.eql(0);
expect(potions.items.filter(x => x.key === 'Aquatic' || x.key === 'Celestial').length, 'Aquatic or Celestial found').to.eql(0);
});
it('returns end date for scheduled premium potions', async () => {
const potions = shared.shops.getMarketCategories(user).find(x => x.identifier === 'premiumHatchingPotions');
potions.items.forEach(potion => {