mirror of
https://github.com/overleaf/overleaf.git
synced 2025-02-25 09:30:58 +00:00
Remove unused uiConfig global variable from frontend and tests GitOrigin-RevId: 390abdc097cd9904f7a1c1849e58baf70bea5c72
14 lines
254 B
JavaScript
14 lines
254 B
JavaScript
import sinon from 'sinon'
|
|
|
|
export function stubMathJax() {
|
|
window.MathJax = {
|
|
Hub: {
|
|
Queue: sinon.stub(),
|
|
config: { tex2jax: { inlineMath: [['$', '$']] } }
|
|
}
|
|
}
|
|
}
|
|
|
|
export function tearDownMathJaxStubs() {
|
|
delete window.MathJax
|
|
}
|