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:
ylemkimon
2018-12-24 08:46:25 +09:00
committed by Kevin Barabash
parent f10de9617e
commit 45a58f8d30
3 changed files with 111 additions and 73 deletions

View File

@@ -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}` : '');
},
};