overleaf/services/web/test/frontend/features/chat/components/stubs.js

15 lines
254 B
JavaScript
Raw Normal View History

import sinon from 'sinon'
export function stubMathJax() {
window.MathJax = {
Hub: {
Queue: sinon.stub(),
config: { tex2jax: { inlineMath: [['$', '$']] } }
}
}
}
export function tearDownMathJaxStubs() {
delete window.MathJax
}