mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-10 22:50:46 +02:00
Merge pull request #3495 from overleaf/ae-prettier-2
Upgrade Prettier to v2 GitOrigin-RevId: 85aa3fa1acb6332c4f58c46165a43d1a51471f33
This commit is contained in:
@@ -4,10 +4,10 @@ const request = require('./helpers/request')
|
||||
// create a string that is longer than the max allowed (as defined in Server.js)
|
||||
const wayTooLongString = 'a'.repeat(Settings.max_json_request_size + 1)
|
||||
|
||||
describe('BodyParserErrors', function() {
|
||||
describe('when request is too large', function() {
|
||||
describe('json', function() {
|
||||
it('return 413', function(done) {
|
||||
describe('BodyParserErrors', function () {
|
||||
describe('when request is too large', function () {
|
||||
describe('json', function () {
|
||||
it('return 413', function (done) {
|
||||
request.post(
|
||||
{
|
||||
url: '/login',
|
||||
@@ -26,8 +26,8 @@ describe('BodyParserErrors', function() {
|
||||
})
|
||||
})
|
||||
|
||||
describe('urlencoded', function() {
|
||||
it('return 413', function(done) {
|
||||
describe('urlencoded', function () {
|
||||
it('return 413', function (done) {
|
||||
request.post(
|
||||
{
|
||||
url: '/login',
|
||||
@@ -46,9 +46,9 @@ describe('BodyParserErrors', function() {
|
||||
})
|
||||
})
|
||||
|
||||
describe('when request is not too large', function() {
|
||||
describe('json', function() {
|
||||
it('return normal status code', function(done) {
|
||||
describe('when request is not too large', function () {
|
||||
describe('json', function () {
|
||||
it('return normal status code', function (done) {
|
||||
request.post(
|
||||
{
|
||||
url: '/login',
|
||||
@@ -66,8 +66,8 @@ describe('BodyParserErrors', function() {
|
||||
})
|
||||
})
|
||||
|
||||
describe('urlencoded', function() {
|
||||
it('return normal status code', function(done) {
|
||||
describe('urlencoded', function () {
|
||||
it('return normal status code', function (done) {
|
||||
request.post(
|
||||
{
|
||||
url: '/login',
|
||||
|
||||
Reference in New Issue
Block a user