mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 15:17:25 +01:00
fix tests
This commit is contained in:
@@ -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);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user