mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
15 lines
254 B
JavaScript
15 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
|
||
|
}
|