fix tests

This commit is contained in:
Phillip Thelen
2024-06-06 21:50:24 +02:00
parent 31036ad9e4
commit dcf25c0b4a

View File

@@ -32,9 +32,9 @@ describe('Shop Featured Items', () => {
describe('Quest Shop', () => { describe('Quest Shop', () => {
it('contains bundle', () => { it('contains bundle', () => {
clock = Sinon.useFakeTimers(new Date('2024-04-08')); clock = Sinon.useFakeTimers(new Date('2024-03-08'));
const items = featuredItems.quests(); const items = featuredItems.quests();
expect(_.find(items, item => item.path === 'bundles.birdBuddies')).to.exist; expect(_.find(items, item => item.path === 'quests.pinkMarble')).to.exist;
}); });
it('contains pet quests', () => { it('contains pet quests', () => {
@@ -43,10 +43,10 @@ describe('Shop Featured Items', () => {
expect(_.find(items, item => item.path === 'quests.frog')).to.exist; expect(_.find(items, item => item.path === 'quests.frog')).to.exist;
}); });
it('is featuring 4 items', () => { it('is featuring 3 items', () => {
clock = Sinon.useFakeTimers(new Date('2024-02-08')); clock = Sinon.useFakeTimers(new Date('2024-02-08'));
const items = featuredItems.quests(); const items = featuredItems.quests();
expect(items.length).to.eql(4); expect(items.length).to.eql(3);
}); });
}); });
}); });