@@ -27,7 +27,7 @@ describe('TrustedHtml LaTeX locator', () => {
27
27
it ( 'can find basic delimiters' , ( ) => {
28
28
delimiters . forEach ( ( [ open , displayMode , close ] ) => {
29
29
const testcase = html [ 0 ] + wrapIn ( open , math [ 0 ] , close ) + html [ 1 ] ;
30
- const result = katexify ( testcase , null , null , null , false , { } ) ;
30
+ const result = katexify ( testcase , null , null , false , { } ) ;
31
31
32
32
expect ( result ) . toEqual ( html [ 0 ] + LATEX + html [ 1 ] ) ;
33
33
// @ts -ignore
@@ -40,7 +40,7 @@ describe('TrustedHtml LaTeX locator', () => {
40
40
it ( "unbalanced delimiters don't break everything but instead are just skipped" , ( ) => {
41
41
delimiters . forEach ( ( [ open , , ] ) => {
42
42
const testcase = html [ 0 ] + wrapIn ( open , math [ 0 ] , "" ) + html [ 1 ] ;
43
- const result = katexify ( testcase , null , null , null , false , { } ) ;
43
+ const result = katexify ( testcase , null , null , false , { } ) ;
44
44
45
45
expect ( result ) . toEqual ( html [ 0 ] + open + math [ 0 ] + html [ 1 ] ) ;
46
46
expect ( katex . renderToString ) . not . toHaveBeenCalled ( ) ;
@@ -51,7 +51,7 @@ describe('TrustedHtml LaTeX locator', () => {
51
51
nestedDollars . forEach ( ( dollarMath ) => {
52
52
delimiters . forEach ( ( [ open , displayMode , close ] ) => {
53
53
const testcase = html [ 0 ] + wrapIn ( open , dollarMath , close ) + html [ 1 ] ;
54
- const result = katexify ( testcase , null , null , null , false , { } ) ;
54
+ const result = katexify ( testcase , null , null , false , { } ) ;
55
55
56
56
expect ( result ) . toEqual ( html [ 0 ] + LATEX + html [ 1 ] ) ;
57
57
// @ts -ignore
@@ -65,7 +65,7 @@ describe('TrustedHtml LaTeX locator', () => {
65
65
it ( 'can render environments' , ( ) => {
66
66
const env = "\\begin{aligned}" + math [ 0 ] + "\\end{aligned}" ;
67
67
const testcase = html [ 0 ] + env + html [ 1 ] ;
68
- const result = katexify ( testcase , null , null , null , false , { } ) ;
68
+ const result = katexify ( testcase , null , null , false , { } ) ;
69
69
70
70
expect ( result ) . toEqual ( html [ 0 ] + LATEX + html [ 1 ] ) ;
71
71
// @ts -ignore
@@ -77,7 +77,7 @@ describe('TrustedHtml LaTeX locator', () => {
77
77
it ( 'missing refs show an inline error' , ( ) => {
78
78
const ref = "\\ref{foo[234o89tdgfiuno34£\"$%^Y}" ;
79
79
const testcase = html [ 0 ] + ref + html [ 1 ] ;
80
- const result = katexify ( testcase , null , null , null , false , { } ) ;
80
+ const result = katexify ( testcase , null , null , false , { } ) ;
81
81
82
82
expect ( result ) . toEqual ( html [ 0 ] + "unknown reference " + ref + html [ 1 ] ) ;
83
83
expect ( katex . renderToString ) . not . toHaveBeenCalled ( ) ;
@@ -86,7 +86,7 @@ describe('TrustedHtml LaTeX locator', () => {
86
86
it ( 'found refs show their figure number' , ( ) => {
87
87
const ref = "\\ref{foo}" ;
88
88
const testcase = html [ 0 ] + ref + html [ 1 ] ;
89
- const result = katexify ( testcase , null , null , null , false , { foo : 42 } ) ;
89
+ const result = katexify ( testcase , null , null , false , { foo : 42 } ) ;
90
90
91
91
const expectedFigureRef = "Figure" + " " + "42" ;
92
92
const expectedFigureRefWithFormatting = `<strong class="text-secondary figure-reference">${ expectedFigureRef } </strong>` ;
@@ -98,7 +98,7 @@ describe('TrustedHtml LaTeX locator', () => {
98
98
const escapedDollar = "\\$" ;
99
99
const unescapedDollar = "$" ;
100
100
const testcase = html [ 0 ] + escapedDollar + html [ 1 ] ;
101
- const result = katexify ( testcase , null , null , null , false , { } ) ;
101
+ const result = katexify ( testcase , null , null , false , { } ) ;
102
102
103
103
expect ( result ) . toEqual ( html [ 0 ] + unescapedDollar + html [ 1 ] ) ;
104
104
expect ( katex . renderToString ) . not . toHaveBeenCalled ( ) ;
0 commit comments