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
@@ -33,15 +33,15 @@ const joinProject = (user_id, project_id, callback) =>
callback
)
describe('ProjectFeatures', function() {
beforeEach(function(done) {
describe('ProjectFeatures', function () {
beforeEach(function (done) {
this.timeout(90000)
this.owner = new User()
return async.series([cb => this.owner.login(cb)], done)
})
describe('with private project', function() {
beforeEach(function(done) {
describe('with private project', function () {
beforeEach(function (done) {
return this.owner.createProject(
'private-project',
(error, project_id) => {
@@ -54,15 +54,15 @@ describe('ProjectFeatures', function() {
)
})
describe('with an upgraded account', function() {
beforeEach(function(done) {
describe('with an upgraded account', function () {
beforeEach(function (done) {
return this.owner.upgradeFeatures(done)
})
after(function(done) {
after(function (done) {
return this.owner.defaultFeatures(done)
})
it('should have premium features', function(done) {
it('should have premium features', function (done) {
return joinProject(
this.owner._id,
this.project_id,
@@ -77,15 +77,15 @@ describe('ProjectFeatures', function() {
})
})
describe('with an basic account', function() {
beforeEach(function(done) {
describe('with an basic account', function () {
beforeEach(function (done) {
return this.owner.downgradeFeatures(done)
})
after(function(done) {
after(function (done) {
return this.owner.defaultFeatures(done)
})
it('should have basic features', function(done) {
it('should have basic features', function (done) {
return joinProject(
this.owner._id,
this.project_id,