Merge pull request #1717 from overleaf/as-decaffeinate-backend

Decaffeinate backend

GitOrigin-RevId: 4ca9f94fc809cab6f47cec8254cacaf1bb3806fa
This commit is contained in:
Alasdair Smith
2019-05-29 10:21:06 +01:00
committed by sharelatex
parent d4eb71b525
commit 0ca81de78c
863 changed files with 177442 additions and 58929 deletions
@@ -0,0 +1,53 @@
/* eslint-disable
max-len,
no-return-assign,
no-unused-vars,
*/
// TODO: This file was created by bulk-decaffeinate.
// Fix any style issues and re-enable lint.
/*
* decaffeinate suggestions:
* DS102: Remove unnecessary code created because of implicit returns
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
*/
const sinon = require('sinon')
const chai = require('chai')
const should = chai.should()
const { expect } = chai
const modulePath = '../../../../app/src/Features/Project/ProjectHelper.js'
const SandboxedModule = require('sandboxed-module')
describe('ProjectHelper', function() {
beforeEach(function() {
return (this.ProjectHelper = SandboxedModule.require(modulePath))
})
return describe('compilerFromV1Engine', function() {
it('returns the correct engine for latex_dvipdf', function() {
return expect(
this.ProjectHelper.compilerFromV1Engine('latex_dvipdf')
).to.equal('latex')
})
it('returns the correct engine for pdflatex', function() {
return expect(
this.ProjectHelper.compilerFromV1Engine('pdflatex')
).to.equal('pdflatex')
})
it('returns the correct engine for xelatex', function() {
return expect(
this.ProjectHelper.compilerFromV1Engine('xelatex')
).to.equal('xelatex')
})
return it('returns the correct engine for lualatex', function() {
return expect(
this.ProjectHelper.compilerFromV1Engine('lualatex')
).to.equal('lualatex')
})
})
})
// describe "ensureNameIsUnique", ->
// see tests for: ProjectDetailsHandler.ensureProjectNameIsUnique, which calls here.