mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-29 12:01:32 +02:00
Merge pull request #3495 from overleaf/ae-prettier-2
Upgrade Prettier to v2 GitOrigin-RevId: 85aa3fa1acb6332c4f58c46165a43d1a51471f33
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user