fix linting

This commit is contained in:
Phillip Thelen
2023-02-24 10:47:50 +01:00
parent be18476292
commit 62b171ffa5
2 changed files with 1 additions and 3 deletions

View File

@@ -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());

View File

@@ -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);