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
@@ -3,10 +3,10 @@ const async = require('async')
const User = require('./helpers/User')
const Subscription = require('./helpers/Subscription')
describe('Subscriptions', function() {
describe('features', function() {
describe('individual subscriptions', function() {
beforeEach(function(done) {
describe('Subscriptions', function () {
describe('features', function () {
describe('individual subscriptions', function () {
beforeEach(function (done) {
this.adminUser = new User()
async.series(
[
@@ -25,7 +25,7 @@ describe('Subscriptions', function() {
)
})
it('should give features to admin', function(done) {
it('should give features to admin', function (done) {
this.adminUser.getFeatures((error, features) => {
expect(features.collaborators).to.equal(-1)
done(error)
@@ -33,8 +33,8 @@ describe('Subscriptions', function() {
})
})
describe('group subscriptions', function() {
beforeEach(function(done) {
describe('group subscriptions', function () {
beforeEach(function (done) {
this.adminUser = new User()
this.memberUser = new User()
async.series(
@@ -56,14 +56,14 @@ describe('Subscriptions', function() {
)
})
it('should give features to member', function(done) {
it('should give features to member', function (done) {
this.memberUser.getFeatures((error, features) => {
expect(features.collaborators).to.equal(-1)
done(error)
})
})
it('should not give features to admin', function(done) {
it('should not give features to admin', function (done) {
this.adminUser.getFeatures((error, features) => {
expect(features.collaborators).to.equal(1)
done(error)