mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
0097564754
Open in Overleaf: Add support for arrays of files GitOrigin-RevId: 5ef6d1ace6b7c6c041f2846f2f433b39fb137372
26 lines
No EOL
991 B
CoffeeScript
26 lines
No EOL
991 B
CoffeeScript
sinon = require('sinon')
|
|
chai = require('chai')
|
|
should = chai.should()
|
|
expect = chai.expect
|
|
modulePath = "../../../../app/js/Features/Project/ProjectHelper.js"
|
|
SandboxedModule = require('sandboxed-module')
|
|
|
|
describe "ProjectHelper", ->
|
|
beforeEach ->
|
|
@ProjectHelper = SandboxedModule.require modulePath
|
|
|
|
describe "compilerFromV1Engine", ->
|
|
it "returns the correct engine for latex_dvipdf", ->
|
|
expect(@ProjectHelper.compilerFromV1Engine('latex_dvipdf')).to.equal 'latex'
|
|
|
|
it "returns the correct engine for pdflatex", ->
|
|
expect(@ProjectHelper.compilerFromV1Engine('pdflatex')).to.equal 'pdflatex'
|
|
|
|
it "returns the correct engine for xelatex", ->
|
|
expect(@ProjectHelper.compilerFromV1Engine('xelatex')).to.equal 'xelatex'
|
|
|
|
it "returns the correct engine for lualatex", ->
|
|
expect(@ProjectHelper.compilerFromV1Engine('lualatex')).to.equal 'lualatex'
|
|
|
|
# describe "ensureNameIsUnique", ->
|
|
# see tests for: ProjectDetailsHandler.ensureProjectNameIsUnique, which calls here. |