mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-07 08:09:01 +02:00
Merge pull request #3495 from overleaf/ae-prettier-2
Upgrade Prettier to v2 GitOrigin-RevId: 85aa3fa1acb6332c4f58c46165a43d1a51471f33
This commit is contained in:
@@ -7,8 +7,8 @@ const MODULE_PATH = path.join(
|
||||
'../../../../app/src/Features/User/UserOnboardingEmailManager'
|
||||
)
|
||||
|
||||
describe('UserOnboardingEmailManager', function() {
|
||||
beforeEach(function() {
|
||||
describe('UserOnboardingEmailManager', function () {
|
||||
beforeEach(function () {
|
||||
this.fakeUserId = '123abc'
|
||||
this.fakeUserEmail = 'frog@overleaf.com'
|
||||
this.onboardingEmailsQueue = {
|
||||
@@ -55,8 +55,8 @@ describe('UserOnboardingEmailManager', function() {
|
||||
})
|
||||
})
|
||||
|
||||
describe('schedule email', function() {
|
||||
it('should schedule delayed job on queue', function() {
|
||||
describe('schedule email', function () {
|
||||
it('should schedule delayed job on queue', function () {
|
||||
this.UserOnboardingEmailManager.scheduleOnboardingEmail({
|
||||
_id: this.fakeUserId
|
||||
})
|
||||
@@ -67,7 +67,7 @@ describe('UserOnboardingEmailManager', function() {
|
||||
)
|
||||
})
|
||||
|
||||
it('queue process callback should send onboarding email and update user', async function() {
|
||||
it('queue process callback should send onboarding email and update user', async function () {
|
||||
await this.queueProcessFunction({ data: { userId: this.fakeUserId } })
|
||||
sinon.assert.calledWith(
|
||||
this.UserGetter.promises.getUser,
|
||||
@@ -90,7 +90,7 @@ describe('UserOnboardingEmailManager', function() {
|
||||
)
|
||||
})
|
||||
|
||||
it('queue process callback should stop if user is not found', async function() {
|
||||
it('queue process callback should stop if user is not found', async function () {
|
||||
this.UserGetter.promises.getUser = sinon.stub().resolves()
|
||||
await this.queueProcessFunction({ data: { userId: 'deleted-user' } })
|
||||
sinon.assert.calledWith(
|
||||
|
||||
Reference in New Issue
Block a user