mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-09 21:18:40 +00:00
Update lockfile, fix test reporting, throwOnError on yarn start
test page (#1798)
* Update lockfile * Fix test reporting * Set throwOnError on `yarn start` test page
This commit is contained in:
committed by
Kevin Barabash
parent
f10de9617e
commit
45a58f8d30
@@ -149,7 +149,7 @@ export const expectKaTeX = (expr, settings, mode, isNot, expectedError) => {
|
||||
pass,
|
||||
message: () => 'Expected the expression to ' +
|
||||
printExpectedResult(mode.noun, isNot, expectedError) +
|
||||
`:\n ${printReceived(expr)}\n` +
|
||||
`:\n ${printReceived(r(expr))}\n` +
|
||||
printActualErrorMessage(error),
|
||||
};
|
||||
};
|
||||
@@ -163,15 +163,15 @@ export const expectEquivalent = (actual, expected, settings, mode, expand) => {
|
||||
pass,
|
||||
message: pass
|
||||
? () =>
|
||||
`${mode.Verb} trees of ${printReceived(actual)} and ` +
|
||||
`${printExpected(expected)} are equivalent`
|
||||
`${mode.Verb} trees of ${printReceived(r(actual))} and ` +
|
||||
`${printExpected(r(expected))} are equivalent`
|
||||
: () => {
|
||||
const diffString = diff(expectedTree, actualTree, {
|
||||
expand,
|
||||
});
|
||||
|
||||
return `${mode.Verb} trees of ${printReceived(actual)} and ` +
|
||||
`${printExpected(expected)} are not equivalent` +
|
||||
return `${mode.Verb} trees of ${printReceived(r(actual))} and ` +
|
||||
`${printExpected(r(expected))} are not equivalent` +
|
||||
(diffString ? `:\n\n${diffString}` : '');
|
||||
},
|
||||
};
|
||||
|
Reference in New Issue
Block a user