mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-27 11:01:56 +02:00
Merge pull request #3495 from overleaf/ae-prettier-2
Upgrade Prettier to v2 GitOrigin-RevId: 85aa3fa1acb6332c4f58c46165a43d1a51471f33
This commit is contained in:
@@ -14,8 +14,8 @@ const modulePath = '../../../../app/src/Features/Project/ProjectApiController'
|
||||
const SandboxedModule = require('sandboxed-module')
|
||||
const sinon = require('sinon')
|
||||
|
||||
describe('Project api controller', function() {
|
||||
beforeEach(function() {
|
||||
describe('Project api controller', function () {
|
||||
beforeEach(function () {
|
||||
this.ProjectDetailsHandler = { getDetails: sinon.stub() }
|
||||
this.controller = SandboxedModule.require(modulePath, {
|
||||
requires: {
|
||||
@@ -36,8 +36,8 @@ describe('Project api controller', function() {
|
||||
return (this.projDetails = { name: 'something' })
|
||||
})
|
||||
|
||||
describe('getProjectDetails', function() {
|
||||
it('should ask the project details handler for proj details', function(done) {
|
||||
describe('getProjectDetails', function () {
|
||||
it('should ask the project details handler for proj details', function (done) {
|
||||
this.ProjectDetailsHandler.getDetails.callsArgWith(
|
||||
1,
|
||||
null,
|
||||
@@ -53,7 +53,7 @@ describe('Project api controller', function() {
|
||||
return this.controller.getProjectDetails(this.req, this.res)
|
||||
})
|
||||
|
||||
it('should send a 500 if there is an error', function() {
|
||||
it('should send a 500 if there is an error', function () {
|
||||
this.ProjectDetailsHandler.getDetails.callsArgWith(1, 'error')
|
||||
this.controller.getProjectDetails(this.req, this.res, this.next)
|
||||
return this.next.calledWith('error').should.equal(true)
|
||||
|
||||
Reference in New Issue
Block a user