mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
af2d959504
Implement v1 open-with-overleaf API in v2 (part 1) GitOrigin-RevId: 488f4eeefc29086a72295ccbc7c63d2f927add12
23 lines
868 B
CoffeeScript
23 lines
868 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'
|