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
@@ -1,12 +1,12 @@
const User = require('./helpers/User')
const { expect } = require('chai')
describe('EditorHttpController', function() {
beforeEach('login', function(done) {
describe('EditorHttpController', function () {
beforeEach('login', function (done) {
this.user = new User()
this.user.login(done)
})
beforeEach('create project', function(done) {
beforeEach('create project', function (done) {
this.projectName = 'wombat'
this.user.createProject(this.projectName, (error, projectId) => {
if (error) return done(error)
@@ -14,7 +14,7 @@ describe('EditorHttpController', function() {
done()
})
})
beforeEach('create doc', function(done) {
beforeEach('create doc', function (done) {
this.user.createDocInProject(
this.projectId,
null,
@@ -26,8 +26,8 @@ describe('EditorHttpController', function() {
)
})
describe('joinProject', function() {
it('should emit an empty deletedDocs array', function(done) {
describe('joinProject', function () {
it('should emit an empty deletedDocs array', function (done) {
this.user.joinProject(this.projectId, (error, details) => {
if (error) return done(error)
@@ -36,12 +36,12 @@ describe('EditorHttpController', function() {
})
})
describe('after deleting a doc', function() {
beforeEach(function(done) {
describe('after deleting a doc', function () {
beforeEach(function (done) {
this.user.deleteItemInProject(this.projectId, 'doc', this.docId, done)
})
it('should include the deleted doc in the deletedDocs array', function(done) {
it('should include the deleted doc in the deletedDocs array', function (done) {
this.user.joinProject(this.projectId, (error, details) => {
if (error) return done(error)