@@ -31,7 +31,7 @@ describe('TrustedHtml LaTeX locator', () => {
31
31
it ( 'can find basic delimiters' , ( ) => {
32
32
delimiters . forEach ( ( [ open , displayMode , close ] ) => {
33
33
const testcase = html [ 0 ] + wrapIn ( open , math [ 0 ] , close ) + html [ 1 ] ;
34
- const result = katexify ( testcase , null , undefined , false , { } ) ;
34
+ const result = katexify ( testcase , undefined , false , false , { } ) ;
35
35
36
36
expect ( result ) . toEqual ( html [ 0 ] + LATEX + html [ 1 ] ) ;
37
37
// @ts -ignore
@@ -48,7 +48,7 @@ describe('TrustedHtml LaTeX locator', () => {
48
48
it ( "unbalanced delimiters don't break everything but instead are just skipped" , ( ) => {
49
49
delimiters . forEach ( ( [ open , , ] ) => {
50
50
const testcase = html [ 0 ] + wrapIn ( open , math [ 0 ] , "" ) + html [ 1 ] ;
51
- const result = katexify ( testcase , null , undefined , false , { } ) ;
51
+ const result = katexify ( testcase , undefined , false , false , { } ) ;
52
52
53
53
expect ( result ) . toEqual ( html [ 0 ] + open + math [ 0 ] + html [ 1 ] ) ;
54
54
expect ( katex . renderToString ) . not . toHaveBeenCalled ( ) ;
@@ -59,7 +59,7 @@ describe('TrustedHtml LaTeX locator', () => {
59
59
nestedDollars . forEach ( ( dollarMath ) => {
60
60
delimiters . forEach ( ( [ open , displayMode , close ] ) => {
61
61
const testcase = html [ 0 ] + wrapIn ( open , dollarMath , close ) + html [ 1 ] ;
62
- const result = katexify ( testcase , null , undefined , false , { } ) ;
62
+ const result = katexify ( testcase , undefined , false , false , { } ) ;
63
63
64
64
expect ( result ) . toEqual ( html [ 0 ] + LATEX + html [ 1 ] ) ;
65
65
// @ts -ignore
@@ -77,7 +77,7 @@ describe('TrustedHtml LaTeX locator', () => {
77
77
it ( 'can render environments' , ( ) => {
78
78
const env = "\\begin{aligned}" + math [ 0 ] + "\\end{aligned}" ;
79
79
const testcase = html [ 0 ] + env + html [ 1 ] ;
80
- const result = katexify ( testcase , null , undefined , false , { } ) ;
80
+ const result = katexify ( testcase , undefined , false , false , { } ) ;
81
81
82
82
expect ( result ) . toEqual ( html [ 0 ] + LATEX + html [ 1 ] ) ;
83
83
// @ts -ignore
@@ -93,7 +93,7 @@ describe('TrustedHtml LaTeX locator', () => {
93
93
it ( 'missing refs show an inline error' , ( ) => {
94
94
const ref = "\\ref{foo[234o89tdgfiuno34£\"$%^Y}" ;
95
95
const testcase = html [ 0 ] + ref + html [ 1 ] ;
96
- const result = katexify ( testcase , null , undefined , false , { } ) ;
96
+ const result = katexify ( testcase , undefined , false , false , { } ) ;
97
97
98
98
expect ( result ) . toEqual ( html [ 0 ] + "unknown reference " + ref + html [ 1 ] ) ;
99
99
expect ( katex . renderToString ) . not . toHaveBeenCalled ( ) ;
@@ -102,7 +102,7 @@ describe('TrustedHtml LaTeX locator', () => {
102
102
it ( 'found refs show their figure number' , ( ) => {
103
103
const ref = "\\ref{foo}" ;
104
104
const testcase = html [ 0 ] + ref + html [ 1 ] ;
105
- const result = katexify ( testcase , null , undefined , false , { foo : 42 } ) ;
105
+ const result = katexify ( testcase , undefined , false , false , { foo : 42 } ) ;
106
106
107
107
const expectedFigureRef = "Figure" + " " + "42" ;
108
108
const expectedFigureRefWithFormatting = `<strong class="text-secondary figure-reference">${ expectedFigureRef } </strong>` ;
@@ -114,7 +114,7 @@ describe('TrustedHtml LaTeX locator', () => {
114
114
const escapedDollar = "\\$" ;
115
115
const unescapedDollar = "$" ;
116
116
const testcase = html [ 0 ] + escapedDollar + html [ 1 ] ;
117
- const result = katexify ( testcase , null , undefined , false , { } ) ;
117
+ const result = katexify ( testcase , undefined , false , false , { } ) ;
118
118
119
119
expect ( result ) . toEqual ( html [ 0 ] + unescapedDollar + html [ 1 ] ) ;
120
120
expect ( katex . renderToString ) . not . toHaveBeenCalled ( ) ;
0 commit comments