mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-16 06:07:21 +01:00
fix linting
This commit is contained in:
@@ -477,7 +477,6 @@ describe('cron', async () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it('increments consecutive benefits the month after the third paid period has started', async () => {
|
it('increments consecutive benefits the month after the third paid period has started', async () => {
|
||||||
console.log(user3.purchased.plan);
|
|
||||||
clock = sinon.useFakeTimers(moment().utcOffset(0).startOf('month').add(7, 'months')
|
clock = sinon.useFakeTimers(moment().utcOffset(0).startOf('month').add(7, 'months')
|
||||||
.add(2, 'days')
|
.add(2, 'days')
|
||||||
.toDate());
|
.toDate());
|
||||||
|
|||||||
@@ -520,12 +520,11 @@ describe('payments/index', () => {
|
|||||||
it('updates plan.consecutive.offset when changing subscription type', async () => {
|
it('updates plan.consecutive.offset when changing subscription type', async () => {
|
||||||
await api.createSubscription(data);
|
await api.createSubscription(data);
|
||||||
expect(user.purchased.plan.consecutive.offset).to.eql(3);
|
expect(user.purchased.plan.consecutive.offset).to.eql(3);
|
||||||
data.sub.key = "basic_6mo";
|
data.sub.key = 'basic_6mo';
|
||||||
await api.createSubscription(data);
|
await api.createSubscription(data);
|
||||||
expect(user.purchased.plan.consecutive.offset).to.eql(6);
|
expect(user.purchased.plan.consecutive.offset).to.eql(6);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
it('awards the Royal Purple Jackalope pet', async () => {
|
it('awards the Royal Purple Jackalope pet', async () => {
|
||||||
await api.createSubscription(data);
|
await api.createSubscription(data);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user