Autoformat files with prettier

[MAILPOET-4075]
This commit is contained in:
Jan Jakes
2022-04-08 14:44:12 +02:00
committed by Veljko V
parent 2506ff5490
commit ab27eaee2d
592 changed files with 17992 additions and 12047 deletions

View File

@@ -17,8 +17,11 @@ describe('MailPoetDate', () => {
const tomorrow = now.clone().add(1, 'days').toISOString();
expect(
MailPoetDate.isInFuture(now.clone().add(1, 'seconds').toISOString(), now),
'1 second in future'
MailPoetDate.isInFuture(
now.clone().add(1, 'seconds').toISOString(),
now,
),
'1 second in future',
).to.be.true;
expect(MailPoetDate.isInFuture(tomorrow, now.valueOf())).to.be.true;
});
@@ -27,10 +30,14 @@ describe('MailPoetDate', () => {
const yesterday = now.clone().add(-1, 'days');
expect(
MailPoetDate.isInFuture(now.clone().add(-1, 'seconds').toISOString(), now),
'1 second in the past'
MailPoetDate.isInFuture(
now.clone().add(-1, 'seconds').toISOString(),
now,
),
'1 second in the past',
).to.be.false;
expect(MailPoetDate.isInFuture(yesterday.toISOString(), now), 'yesterday').to.be.false;
expect(MailPoetDate.isInFuture(yesterday.toISOString(), now), 'yesterday')
.to.be.false;
});
});
});