mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-10 13:38:39 +00:00
Move test helpers into common modules (#1318)
* Move test helpers into common modules * helpers.js gets all the helper functions * setup.js gets the common Jest setup (serializer, expect extensions) * Exclude test from coverage testing * @ylemkimon's comments: parsing -> building, settings || defaultSettings * Default argument for settings * Fix lint errors * @ylemklemon's comment: use buildAndSetResult * Use template literals
This commit is contained in:
@@ -32,7 +32,16 @@ exports[`A parser that does not throw on unsupported commands should build katex
|
||||
}
|
||||
`;
|
||||
|
||||
exports[`A parser that does not throw on unsupported commands should properly escape LaTeX in errors 1`] = `"<span class=\\"katex-error\\" title=\\"ParseError: KaTeX parse error: Expected group after '^' at position 2: 2^̲&"<>\\" style=\\"color:#933\\">2^&"<></span>"`;
|
||||
exports[`A parser that does not throw on unsupported commands should properly escape LaTeX in errors 1`] = `
|
||||
|
||||
<span class="katex-error"
|
||||
title="ParseError: KaTeX parse error: Expected group after '^' at position 2: 2^̲&"<>"
|
||||
style="color:#933"
|
||||
>
|
||||
2^&"<>
|
||||
</span>
|
||||
|
||||
`;
|
||||
|
||||
exports[`An implicit group parser within optional groups should work style commands \\sqrt[\\textstyle 3]{x} 1`] = `
|
||||
[
|
||||
|
Reference in New Issue
Block a user