Merge pull request #3495 from overleaf/ae-prettier-2

Upgrade Prettier to v2

GitOrigin-RevId: 85aa3fa1acb6332c4f58c46165a43d1a51471f33
This commit is contained in:
Alf Eaton
2021-04-14 14:17:21 +01:00
committed by Copybot
parent 930d7ba028
commit 1ebc8a79cb
582 changed files with 20382 additions and 20374 deletions

View File

@@ -19,11 +19,11 @@ const modulePath = require('path').join(
'../../../../app/src/Features/Notifications/NotificationsController.js'
)
describe('NotificationsController', function() {
describe('NotificationsController', function () {
const user_id = '123nd3ijdks'
const notification_id = '123njdskj9jlk'
beforeEach(function() {
beforeEach(function () {
this.handler = {
getUserNotifications: sinon.stub().callsArgWith(1),
markAsRead: sinon.stub().callsArgWith(2)
@@ -53,7 +53,7 @@ describe('NotificationsController', function() {
}))
})
it('should ask the handler for all unread notifications', function(done) {
it('should ask the handler for all unread notifications', function (done) {
const allNotifications = [{ _id: notification_id, user_id }]
this.handler.getUserNotifications = sinon
.stub()
@@ -67,7 +67,7 @@ describe('NotificationsController', function() {
})
})
it('should send a delete request when a delete has been received to mark a notification', function(done) {
it('should send a delete request when a delete has been received to mark a notification', function (done) {
return this.controller.markNotificationAsRead(this.req, {
sendStatus: () => {
this.handler.markAsRead